Patchwork meta-toolchain-sdk build dir names

login
register
mail settings
Submitter Richard Purdie
Date Aug. 9, 2011, 4:25 p.m.
Message ID <1312907105.14274.310.camel@rex>
Download mbox | patch
Permalink /patch/9551/
State New, archived
Headers show

Comments

Richard Purdie - Aug. 9, 2011, 4:25 p.m.
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:


Cheers,

Richard

Patch

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"