From 322d6ab29902a51bd46303a4aed9f2b0b63cdb44 Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Wed, 1 Dec 2010 10:13:01 +0800 Subject: cross-canadian: pkg name includes target arch This commit fixes Bug #528. 1. Added the target arch name to the pkg name of gcc-cross-canadian, gdb-cross-candian and bintuils-cross-candian. 2. Move the cross-canadian pkgs out of task-sdk-host into a new task task-cross-canadian. 3. Added the RDEPENDS of task-cross-canadian into meta-toolchain. Signed-off-by: Lianhao Lu --- 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 +---- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 meta/recipes-core/tasks/task-cross-canadian.bb (limited to 'meta/recipes-core') diff --git a/meta/recipes-core/meta/meta-toolchain.bb b/meta/recipes-core/meta/meta-toolchain.bb index 2fab8f94b..8b62fab6b 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}" IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}" -TOOLCHAIN_HOST_TASK ?= "task-sdk-host" +TOOLCHAIN_HOST_TASK ?= "task-sdk-host task-cross-canadian" TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" diff --git a/meta/recipes-core/tasks/task-cross-canadian.bb b/meta/recipes-core/tasks/task-cross-canadian.bb new file mode 100644 index 000000000..6a7cd2e9e --- /dev/null +++ b/meta/recipes-core/tasks/task-cross-canadian.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Host SDK package for cross canadian toolchain" +PR = "r0" +LICENSE = "MIT" +ALLOW_EMPTY = "1" + +inherit cross-canadian + +PACKAGES = "${PN}" + +RDEPENDS_${PN} = "\ + binutils-cross-canadian-${TARGET_ARCH} \ + gdb-cross-canadian-${TARGET_ARCH} \ + gcc-cross-canadian-${TARGET_ARCH} \ + " + diff --git a/meta/recipes-core/tasks/task-sdk-host.bb b/meta/recipes-core/tasks/task-sdk-host.bb index bccf48dbd..7bf445386 100644 --- a/meta/recipes-core/tasks/task-sdk-host.bb +++ b/meta/recipes-core/tasks/task-sdk-host.bb @@ -3,7 +3,7 @@ # DESCRIPTION = "Host packages for the standalone SDK or external toolchain" -PR = "r8" +PR = "r9" LICENSE = "MIT" ALLOW_EMPTY = "1" @@ -12,9 +12,6 @@ inherit nativesdk PACKAGES = "${PN}" RDEPENDS_${PN} = "\ - binutils-cross-canadian \ - gdb-cross-canadian \ - gcc-cross-canadian \ pkgconfig-nativesdk \ qemu-nativesdk \ qemu-helper-nativesdk \ -- cgit v1.2.3