diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-06-25 12:45:50 -0500 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-07-03 00:05:30 -0700 |
commit | 5fa9f980248e7813ce74f48a29c4b7d94e308cf9 (patch) | |
tree | c7a8ccc0255d18977adc1c67ec4da0d7d2ca2697 | |
parent | 9b9efa96537f4977b158c29151e53d02600d2294 (diff) | |
download | openembedded-core-5fa9f980248e7813ce74f48a29c4b7d94e308cf9.tar.gz openembedded-core-5fa9f980248e7813ce74f48a29c4b7d94e308cf9.tar.bz2 openembedded-core-5fa9f980248e7813ce74f48a29c4b7d94e308cf9.zip |
populate_sdk_base.bbclass: Change to using task specific depends
If we combine the do_populate_sdk with the image generation, we want
to avoid the dependency processing unless do_populate_sdk is run.
This requires the bitbake change to implement task based rdepends.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index a0a0a80e0b..6508bd96cd 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass @@ -13,8 +13,8 @@ TOOLCHAIN_TARGET_TASK ?= "task-core-standalone-sdk-target task-core-standalone-s TOOLCHAIN_TARGET_TASK_ATTEMPTONLY ?= "" TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" -RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" -DEPENDS = "virtual/fakeroot-native sed-native" +SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" +SDK_DEPENDS = "virtual/fakeroot-native sed-native" PID = "${@os.getpid()}" @@ -87,5 +87,7 @@ populate_sdk_log_check() { } do_populate_sdk[nostamp] = "1" +do_populate_sdk[depends] = "${@' '.join([x + ':do_populate_sysroot' for x in d.getVar('SDK_DEPENDS', True).split()])}" +do_populate_sdk[rdepends] = "${@' '.join([x + ':do_populate_sysroot' for x in d.getVar('SDK_RDEPENDS', True).split()])}" do_populate_sdk[recrdeptask] = "do_package_write" addtask populate_sdk |