[PATCH 0/1] Bug #528 fixing


Lianhao Lu <lianhao.lu@...>
 

Since this my very first time trying to contribute to distro, so let me
put some fixing details here and warmly welcome the reivew/comment.

The purpose of this fixing is to add target name in the package name of
gcc(gdb/binutils)-cross-canadian so multiple cross-canadian toolchains
can be installed into the same SDK sysroot.

We choose the PN instead of the PACKAGE(or PKG_pn) to change the package
name because the -locale package is named by the PN. By changing PN, we
have different -locale and -doc packages for different target.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: llu/fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=llu/fix

Thanks,
Lianhao Lu <lianhao.lu@intel.com>
---


Lianhao Lu (1):
cross-canadian: pkg name includes target arch

meta/recipes-core/meta/meta-toolchain.bb | 2 +-
meta/recipes-core/tasks/task-cross-canadian.bb | 15 +++++++++++++++
meta/recipes-core/tasks/task-sdk-host.bb | 5 +----
.../binutils/binutils-cross-canadian.inc | 6 ++++++
.../binutils/binutils-cross-canadian_2.20.1.bb | 2 +-
meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 4 ++++
.../gcc/gcc-cross-canadian_4.3.3.bb | 2 +-
.../gcc/gcc-cross-canadian_4.5.1.bb | 2 +-
meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 7 +++++++
.../recipes-devtools/gdb/gdb-cross-canadian_7.2.bb | 7 ++-----
10 files changed, 39 insertions(+), 13 deletions(-)
create mode 100644 meta/recipes-core/tasks/task-cross-canadian.bb
create mode 100644 meta/recipes-devtools/gdb/gdb-cross-canadian.inc


Richard Purdie <rpurdie@...>
 

Hi Lianhao,

On Wed, 2010-12-01 at 11:31 +0800, Lianhao Lu wrote:
Since this my very first time trying to contribute to distro, so let me
put some fixing details here and warmly welcome the reivew/comment.

The purpose of this fixing is to add target name in the package name of
gcc(gdb/binutils)-cross-canadian so multiple cross-canadian toolchains
can be installed into the same SDK sysroot.

We choose the PN instead of the PACKAGE(or PKG_pn) to change the package
name because the -locale package is named by the PN. By changing PN, we
have different -locale and -doc packages for different target.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: llu/fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=llu/fix
These patches are just what we need, thanks.

We do however need to go one step further and complete the change which
is to remove the idea of "cross-canadian" packages from the packaging
backend and make all these "nativesdk", now there is no naming conflict.

I've attached a patch which starts to do this, I'm running some builds
to test this out a bit but the builds are not completing at the
moment :(.

Also note that I had to make the task-cross-canadian contain the
TARGET_ARCH in the PN which meant moving the TRANSLATED_TARGET_ARCH into
the more global namespace which I'm not too keen on.

Cheers,

Richard

(For reference, patches to Poky should go to the Poky list)