summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk.bbclass
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-12-05 14:56:27 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-06 22:47:02 +0000
commite6bbe41347ae7e3f91fe0e9cf383a4d364f0cc9e (patch)
treedd5d7f3b0f3f3e1e27aae3324652ca00dfe7d3c3 /meta/classes/populate_sdk.bbclass
parente679c35a4f5a3e727d086917690e608fd3a7ed39 (diff)
downloadpoky-e6bbe41347ae7e3f91fe0e9cf383a4d364f0cc9e.tar.gz
populate_sdk.bbclass: remap packages when generating sdk tarball
This fixes the issue below: | Generating solve db for /local/home/mattsm/git/poky/build_p4080ds_release/tmp/deploy/rpm/all... | total: 1 0.000000 MB 0.093784 secs | fingerprint: 9 0.000012 MB 0.000252 secs | install: 3 0.000000 MB 0.039092 secs | dbadd: 3 0.000000 MB 0.034837 secs | dbget: 12 0.000000 MB 0.000062 secs | dbput: 3 0.009532 MB 0.002731 secs | readhdr: 31 0.019160 MB 0.000084 secs | hdrload: 15 0.027924 MB 0.000116 secs | hdrget: 494 0.000000 MB 0.000691 secs | Processing task-core-standalone-sdk-target... | Processing glib-2.0... | Unable to find package glib-2.0 (glib-2.0)! | ERROR: Function 'do_populate_sdk' failed (see /local/home/mattsm/git/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl-linux/fsl-toolchain-1.0-r6/temp/log.do_populate_sdk.16975 for further information) If you have: TOOLCHAIN_TARGET_TASK += "glib-2.0" The package name was not getting remapped correctly for the do_populate_sdk case. (From OE-Core rev: 0b803ac3627c238aa7d19a23b7621f55779f2557) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk.bbclass')
-rw-r--r--meta/classes/populate_sdk.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk.bbclass b/meta/classes/populate_sdk.bbclass
index 1ef72cfeb2..5aa8e92b87 100644
--- a/meta/classes/populate_sdk.bbclass
+++ b/meta/classes/populate_sdk.bbclass
@@ -18,6 +18,13 @@ PID = "${@os.getpid()}"
18 18
19EXCLUDE_FROM_WORLD = "1" 19EXCLUDE_FROM_WORLD = "1"
20 20
21python () {
22 # If we don't do this we try and run the mapping hooks while parsing which is slow
23 # bitbake should really provide something to let us know this...
24 if bb.data.getVar('BB_WORKERCONTEXT', d, True) is not None:
25 runtime_mapping_rename("TOOLCHAIN_TARGET_TASK", d)
26}
27
21fakeroot do_populate_sdk() { 28fakeroot do_populate_sdk() {
22 rm -rf ${SDK_OUTPUT} 29 rm -rf ${SDK_OUTPUT}
23 mkdir -p ${SDK_OUTPUT} 30 mkdir -p ${SDK_OUTPUT}