[oe] [RFC] mysterious armv5te-linux dir under staging

Khem Raj raj.khem at gmail.com
Sun Sep 13 00:04:05 UTC 2009


On (12/09/09 13:03), Khem Raj wrote:
> 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

It turns out to be that the correct results are obtained if it is
overwrritten in cross.bbclass.

Here is revised patch.

Thanks
-Khem

-------------- next part --------------
diff --git a/classes/cross.bbclass b/classes/cross.bbclass
index 7debde6..68e3803 100644
--- a/classes/cross.bbclass
+++ b/classes/cross.bbclass
@@ -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}"


More information about the Openembedded-devel mailing list