Patchwork [1/1] buildhistory.bbclass: create wrapper functions around buildhistory_get_sdk_installed

login
register
mail settings
Submitter Laurentiu Palcu
Date Feb. 13, 2014, 1:49 p.m.
Message ID <a831fc1980c868656ae8c081eda17ab5464e5387.1392299302.git.laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/66707/
State New
Headers show

Comments

Laurentiu Palcu - Feb. 13, 2014, 1:49 p.m.
bb.build.exec_func() does not allow passing arguments to the executed
scripts. Use wrappers instead.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 meta/classes/buildhistory.bbclass |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index c048ca2..0033b5a 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -388,6 +388,14 @@  buildhistory_get_sdk_installed() {
 	buildhistory_get_installed ${BUILDHISTORY_DIR_SDK}/$1 sdk
 }
 
+buildhistory_get_sdk_installed_host() {
+	buildhistory_get_sdk_installed host
+}
+
+buildhistory_get_sdk_installed_target() {
+	buildhistory_get_sdk_installed target
+}
+
 buildhistory_list_files() {
 	# List the files in the specified directory, but exclude date/time etc.
 	# This awk script is somewhat messy, but handles where the size is not printed for device files under pseudo
@@ -449,8 +457,8 @@  ROOTFS_POSTPROCESS_COMMAND =+ "buildhistory_get_image_installed ; "
 IMAGE_POSTPROCESS_COMMAND += " buildhistory_get_imageinfo ; "
 
 # We want these to be the last run so that we get called after complementary package installation
-POPULATE_SDK_POST_TARGET_COMMAND_append = "buildhistory_get_sdk_installed target ; "
-POPULATE_SDK_POST_HOST_COMMAND_append = "buildhistory_get_sdk_installed host ; "
+POPULATE_SDK_POST_TARGET_COMMAND_append = "buildhistory_get_sdk_installed_target ; "
+POPULATE_SDK_POST_HOST_COMMAND_append = "buildhistory_get_sdk_installed_host ; "
 
 SDK_POSTPROCESS_COMMAND += "buildhistory_get_sdkinfo ; "