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 <lianhao.lu@intel.com>
This commit is contained in:
Lianhao Lu
2010-12-01 10:13:01 +08:00
committed by Richard Purdie
parent c47cfc56c7
commit 322d6ab299
10 changed files with 39 additions and 13 deletions

View File

@@ -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}"

View File

@@ -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} \
"

View File

@@ -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 \

View File

@@ -1,4 +1,10 @@
inherit cross-canadian
DESCRIPTION = "A GNU collection of cross-canadian binary utilities for ${TARGET_ARCH} target"
PN = "binutils-cross-canadian-${TARGET_ARCH}"
BPN = "binutils"
DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/libc-nativesdk zlib-nativesdk gettext-nativesdk"
EXTRA_OECONF = "--with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
--program-prefix=${TARGET_PREFIX}"

View File

@@ -1,3 +1,3 @@
require binutils_${PV}.bb
require binutils-cross-canadian.inc
PR = "r5"
PR = "r6"

View File

@@ -1,4 +1,8 @@
inherit cross-canadian
DESCRIPTION = "The cross-canadian GNU cc and gcc C compilers for ${TARGET_ARCH} target."
PN = "gcc-cross-canadian-${TARGET_ARCH}"
BPN = "gcc"
DEPENDS = "virtual/${HOST_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc gettext-nativesdk"

View File

@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
require gcc-configure-sdk.inc
require gcc-package-sdk.inc
PR = "r19"
PR = "r20"
DEPENDS += "gmp-nativesdk mpfr-nativesdk"
RDEPENDS_${PN} += "mpfr-nativesdk"

View File

@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
require gcc-configure-sdk.inc
require gcc-package-sdk.inc
PR = "r0"
PR = "r1"
DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"

View File

@@ -0,0 +1,7 @@
inherit cross-canadian
DESCRIPTION = "cross-canadian gdb for ${TARGET_ARCH} target - GNU debugger"
PN = "gdb-cross-canadian-${TARGET_ARCH}"
BPN = "gdb"
DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk"

View File

@@ -1,10 +1,7 @@
require gdb-common.inc
require gdb-cross-canadian.inc
DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk"
inherit cross-canadian
PR = "r0"
PR = "r1"
GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
EXPAT = "--with-expat"