[OE-core] meta-toolchain-sdk build dir names

Richard Purdie richard.purdie at linuxfoundation.org
Tue Aug 9 16:25:05 UTC 2011


On Tue, 2011-08-09 at 10:46 -0500, Kumar Gala wrote:
> When we do a build we get something like:
> 
> opt/poky/1.0+snapshot/sysroots/powerpc-poky-linux
> 
> Where does the 'powerpc-poky-linux' name come from?
> 
> I think this needs to be more specific to the build if required because of how AVAILTUNES, etc are set.
> 
> So something like:
> 
> opt/poky/1.0+snapshot/sysroots/ppc603e-poky-linux

Agreed, this is a problem with how we're currently setting up the sdk
structure. Something like this will likely fix it:

diff --git a/meta/classes/populate_sdk.bbclass b/meta/classes/populate_sdk.bbclass
index 0f3591b..8c19e83 100644
--- a/meta/classes/populate_sdk.bbclass
+++ b/meta/classes/populate_sdk.bbclass
@@ -5,7 +5,7 @@ SDK_DIR = "${WORKDIR}/sdk"
 SDK_OUTPUT = "${SDK_DIR}/image"
 SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
 
-SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}"
+SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${MULTIMACH_TARGET_SYS}"
 
 TOOLCHAIN_HOST_TASK ?= "task-sdk-host-nativesdk task-cross-canadian-${TRANSLATED_TARGET_ARCH}"
 TOOLCHAIN_TARGET_TASK ?= "task-core-standalone-sdk-target task-core-standalone-sdk-target-dbg"

Cheers,

Richard





More information about the Openembedded-core mailing list