mirror of
https://git.yoctoproject.org/poky
synced 2026-07-15 15:37:03 +00:00
binutils/gcc/gdb: Add TARGET_ARCH to PN for all cross recipes
This allows them to co-exist together in the native sysroot, with one set of cross tools per target architecture. (From OE-Core rev: a2c5509520d5c3e082f55844e6545d0309565f8f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
inherit cross
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}binutils"
|
||||
|
||||
PN = "binutils-cross-${TARGET_ARCH}"
|
||||
BPN = "binutils"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
INHIBIT_AUTOTOOLS_DEPS = "1"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ require binutils-cross_${PV}.bb
|
||||
|
||||
inherit crosssdk
|
||||
|
||||
PN = "binutils-crosssdk-${TARGET_ARCH}"
|
||||
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk"
|
||||
|
||||
SRC_URI += "file://relocatable_sdk.patch"
|
||||
|
||||
@@ -7,6 +7,8 @@ NATIVEDEPS = ""
|
||||
|
||||
inherit autotools gettext
|
||||
|
||||
BPN = "gcc"
|
||||
|
||||
def get_gcc_fpu_setting(bb, d):
|
||||
if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm":
|
||||
return "--with-float=hard"
|
||||
|
||||
@@ -2,7 +2,6 @@ inherit cross-canadian
|
||||
|
||||
SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)"
|
||||
PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
||||
BPN = "gcc"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc nativesdk-gettext"
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ PACKAGES = ""
|
||||
INHIBIT_AUTOTOOLS_DEPS = "1"
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
PN = "gcc-cross-initial-${TARGET_ARCH}"
|
||||
|
||||
CROSS_TARGET_SYS_DIR_append = ".${PN}"
|
||||
|
||||
# This is intended to be a -very- basic config
|
||||
@@ -68,8 +70,8 @@ do_install () {
|
||||
|
||||
# gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
|
||||
case ${PN} in
|
||||
*gcc-cross-initial|*gcc-crosssdk-initial)
|
||||
dest=${D}/${includedir}/gcc-build-internal-initial-${MULTIMACH_TARGET_SYS}
|
||||
*gcc-cross-initial-${TARGET_ARCH}|*gcc-crosssdk-initial-${TARGET_ARCH})
|
||||
dest=${D}/${includedir}/gcc-build-internal-initial-${TARGET_SYS}
|
||||
hardlinkdir . $dest
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -9,6 +9,8 @@ python () {
|
||||
d.setVar("EXTRADEPENDS", "linux-libc-headers")
|
||||
}
|
||||
|
||||
PN = "gcc-cross-${TARGET_ARCH}"
|
||||
|
||||
require gcc-configure-common.inc
|
||||
|
||||
EXTRA_OECONF += " --enable-poison-system-directories"
|
||||
@@ -138,7 +140,7 @@ STOP
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
# Compute how to get from libexecdir to bindir in python (easier than shell)
|
||||
BINRELPATH = "${@os.path.relpath(d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}"
|
||||
BINRELPATH = "${@os.path.relpath(d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}"
|
||||
|
||||
do_install () {
|
||||
( cd ${B}/${TARGET_SYS}/libgcc; oe_runmake 'DESTDIR=${D}' install-unwind_h )
|
||||
@@ -177,8 +179,8 @@ do_install () {
|
||||
|
||||
# gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
|
||||
case ${PN} in
|
||||
*gcc-cross|*gcc-crosssdk)
|
||||
dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS}
|
||||
*gcc-cross-${TARGET_ARCH}|*gcc-crosssdk-${TARGET_ARCH})
|
||||
dest=${D}/${includedir}/gcc-build-internal-${TARGET_SYS}
|
||||
hardlinkdir . $dest
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
inherit crosssdk
|
||||
|
||||
PN = "gcc-crosssdk-initial-${TARGET_ARCH}"
|
||||
|
||||
SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include"
|
||||
SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/"
|
||||
SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
inherit crosssdk
|
||||
|
||||
PN = "gcc-crosssdk-${TARGET_ARCH}"
|
||||
|
||||
SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include"
|
||||
SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/"
|
||||
SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
|
||||
|
||||
@@ -20,7 +20,7 @@ RUNTIMETARGET = "libssp libstdc++-v3 libgomp libatomic"
|
||||
|
||||
do_configure () {
|
||||
export CXX="${CXX} -nostdinc++ -nostdlib++"
|
||||
mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
|
||||
for d in libgcc ${RUNTIMETARGET}; do
|
||||
|
||||
@@ -3,7 +3,7 @@ BPN = "libgcc"
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
do_configure () {
|
||||
target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
install -d ${D}${base_libdir} ${D}${libdir}
|
||||
hardlinkdir ${STAGING_INCDIR_NATIVE}/${LIBGCCBUILDTREENAME}$target/ ${B}
|
||||
mkdir -p ${B}/${BPN}
|
||||
|
||||
@@ -2,8 +2,8 @@ require libgcc-common.inc
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial"
|
||||
|
||||
STAGINGCC = "gcc-cross-initial"
|
||||
STAGINGCC_class-nativesdk = "gcc-crosssdk-initial"
|
||||
STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}"
|
||||
STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}"
|
||||
PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:"
|
||||
|
||||
PACKAGES = ""
|
||||
|
||||
@@ -5,7 +5,7 @@ EXTRA_OECONF_PATHS = " \
|
||||
--with-build-sysroot=${STAGING_DIR_TARGET}"
|
||||
|
||||
do_configure () {
|
||||
mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
|
||||
hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ EXTRA_OECONF += "--without-python"
|
||||
|
||||
GDBPROPREFIX = ""
|
||||
|
||||
PN = "gdb-cross-${TARGET_ARCH}"
|
||||
BPN = "gdb"
|
||||
|
||||
inherit cross
|
||||
inherit gettext
|
||||
|
||||
|
||||
Reference in New Issue
Block a user