diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-10 16:56:08 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-10 16:56:08 +0000 |
commit | 88ee037741b7e21ff50976a6c5b85278499655ca (patch) | |
tree | 6f7408a7e198d33e02f0d297eb6ccb28930033fd /meta | |
parent | 2021e2a74f4a8cb2066279e3006087fd3b198bc9 (diff) | |
download | poky-88ee037741b7e21ff50976a6c5b85278499655ca.tar.gz |
task-cross-canadian: Ensure it reflects TARGET_ARCH in PN
If this recipe doesn't reflect TARGET_ARCH in its name, only
one flavour of cross toolchain can be installed at once.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/bitbake.conf | 2 | ||||
-rw-r--r-- | meta/recipes-core/meta/meta-toolchain.bb | 2 | ||||
-rw-r--r-- | meta/recipes-core/tasks/task-cross-canadian.bb | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index abd2bb5cfa..d3fd26dcfb 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -726,3 +726,5 @@ TARGET_ARCH[unexport] = "1" | |||
726 | # (breaks sysvinit at least) | 726 | # (breaks sysvinit at least) |
727 | DISTRO[unexport] = "1" | 727 | DISTRO[unexport] = "1" |
728 | 728 | ||
729 | # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed | ||
730 | TRANSLATED_TARGET_ARCH ??= ${TARGET_ARCH} | ||
diff --git a/meta/recipes-core/meta/meta-toolchain.bb b/meta/recipes-core/meta/meta-toolchain.bb index 8b62fab6bd..40f8d7ea26 100644 --- a/meta/recipes-core/meta/meta-toolchain.bb +++ b/meta/recipes-core/meta/meta-toolchain.bb | |||
@@ -13,7 +13,7 @@ SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}" | |||
13 | IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" | 13 | IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" |
14 | IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}" | 14 | IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}" |
15 | 15 | ||
16 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host task-cross-canadian" | 16 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host task-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
17 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" | 17 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" |
18 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" | 18 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" |
19 | 19 | ||
diff --git a/meta/recipes-core/tasks/task-cross-canadian.bb b/meta/recipes-core/tasks/task-cross-canadian.bb index c32afdcbd2..7170faaa96 100644 --- a/meta/recipes-core/tasks/task-cross-canadian.bb +++ b/meta/recipes-core/tasks/task-cross-canadian.bb | |||
@@ -1,4 +1,5 @@ | |||
1 | DESCRIPTION = "Host SDK package for cross canadian toolchain" | 1 | DESCRIPTION = "Host SDK package for cross canadian toolchain" |
2 | PN = "task-cross-canadian-${TRANSLATED_TARGET_ARCH}" | ||
2 | PR = "r0" | 3 | PR = "r0" |
3 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
4 | ALLOW_EMPTY = "1" | 5 | ALLOW_EMPTY = "1" |