mysterious armv5te-linux dir under staging
RFC 1/1 mysterious armv5te-linux dir under staging
Hi
On hrw's suggestion I looked into the mysterious directory armv5te-linux creation on my omap5912osk build.
This directory is created by staging tasks for cross packages like gcc-cross, binutils-cross gdb-cross etc.
This is because in bitbake.conf we set
BASEPKG_HOST_SYS = "${BASE_PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}"
which is ok for target recipes but its not ok for native or cross recipes.
It works for native because native.bbclass redefines it. I decided to change it to
BASEPKG_HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
HOST_ARCH is defined based on -native -target or -cross package so it works in all cases. Overriding in native.bbclass would not be needed but I left it in there
Does anyone sees problem with this little patchlet ?
Thanks
-Khem
conf/bitbake.conf +1 -1
@@ -114,7 +114,7 @@ PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE} MULTIMACH_ARCH = "${PACKAGE_ARCH}" MULTIMACH_TARGET_SYS = "${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}" MULTIMACH_HOST_SYS = "${MULTIMACH_ARCH}${HOST_VENDOR}-${HOST_OS}" -BASEPKG_HOST_SYS = "${BASE_PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}" +BASEPKG_HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" BASEPKG_TARGET_SYS = "${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" # select proper CPU to get binary locales generated
Quoted 19 lines · Khem Raj
Hi
On hrw's suggestion I looked into the mysterious directory armv5te-linux creation on my omap5912osk build.
This directory is created by staging tasks for cross packages like gcc-cross, binutils-cross gdb-cross etc.
This is because in bitbake.conf we set
BASEPKG_HOST_SYS= "${BASE_PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}"which is ok for target recipes but its not ok for native or cross recipes.
It works for native because native.bbclass redefines it. I decided to change it to
Quoted 5 lines
BASEPKG_HOST_SYS= "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
HOST_ARCHis defined based on -native -target or -cross package so it works in all cases. Overriding in native.bbclass would not be needed but I left it in there
It turns out to be that the correct results are obtained if it is overwrritten in cross.bbclass.
Here is revised patch.
Thanks
-Khem
classes/cross.bbclass +1 -0
@@ -17,6 +17,7 @@ HOST_OS = "${BUILD_OS}" HOST_PREFIX = "${BUILD_PREFIX}" HOST_CC_ARCH = "${BUILD_CC_ARCH}" HOST_EXEEXT = "${BUILD_EXEEXT}" +BASEPKG_HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" CPPFLAGS = "${BUILD_CPPFLAGS}" CFLAGS = "${BUILD_CFLAGS}"
Andrea Adami
Acked-byAfter rebuild from scratch the bogus dir has disappeared! Tested on angstrom/dev/glibc/c7x0
Thx
Andrea