mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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:
committed by
Richard Purdie
parent
c47cfc56c7
commit
322d6ab299
@@ -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}"
|
||||
|
||||
|
||||
15
meta/recipes-core/tasks/task-cross-canadian.bb
Normal file
15
meta/recipes-core/tasks/task-cross-canadian.bb
Normal 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} \
|
||||
"
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
require binutils_${PV}.bb
|
||||
require binutils-cross-canadian.inc
|
||||
PR = "r5"
|
||||
PR = "r6"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
7
meta/recipes-devtools/gdb/gdb-cross-canadian.inc
Normal file
7
meta/recipes-devtools/gdb/gdb-cross-canadian.inc
Normal 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"
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user