summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAmarnath Valluri <amarnath.valluri@intel.com>2017-06-14 14:30:47 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-06 14:38:13 +0100
commita4ada62a21d2bbb2a945dfbea19dec794303d42e (patch)
treecafec065c840cc384d87cf2fbe49e3a1d64f4eaf /meta
parent7fd1491d2f07c4a6b5dda78a92c1c17f544d642d (diff)
downloadpoky-a4ada62a21d2bbb2a945dfbea19dec794303d42e.tar.gz
meta/lib/oe/sdk.py: support added for executing pre-target commands
Added a new POPULATE_SDK_PRE_TARGET_COMMAND variable, which can contain functions need to be executed at pre traget sysroot creation phase. classes/populate_sdk_base.bbclass: Added POPULATE_SDK_PRE_TARGET_COMMAND to sdk command variables list. (From OE-Core rev: b0c65c8a64cd0b77629c9f3c65fc827d4cdcf026) Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/populate_sdk_base.bbclass3
-rw-r--r--meta/lib/oe/sdk.py6
2 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 01960ee4cb..20ba219deb 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -262,8 +262,7 @@ populate_sdk_log_check() {
262} 262}
263 263
264def sdk_command_variables(d): 264def sdk_command_variables(d):
265 return ['OPKG_PREPROCESS_COMMANDS','OPKG_POSTPROCESS_COMMANDS','POPULATE_SDK_POST_HOST_COMMAND','POPULATE_SDK_POST_TARGET_COMMAND','SDK_POSTPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS', 265 return ['OPKG_PREPROCESS_COMMANDS','OPKG_POSTPROCESS_COMMANDS','POPULATE_SDK_POST_HOST_COMMAND','POPULATE_SDK_PRE_TARGET_COMMAND','POPULATE_SDK_POST_TARGET_COMMAND','SDK_POSTPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS','RPM_POSTPROCESS_COMMANDS']
266 'RPM_POSTPROCESS_COMMANDS']
267 266
268def sdk_variables(d): 267def sdk_variables(d):
269 variables = ['BUILD_IMAGES_FROM_FEEDS','SDK_OS','SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT', 268 variables = ['BUILD_IMAGES_FROM_FEEDS','SDK_OS','SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT',
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index 1c5409e7e1..30e1fb5316 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -145,6 +145,8 @@ class RpmSdk(Sdk):
145 pm.install(pkgs_attempt, True) 145 pm.install(pkgs_attempt, True)
146 146
147 def _populate(self): 147 def _populate(self):
148 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_PRE_TARGET_COMMAND"))
149
148 bb.note("Installing TARGET packages") 150 bb.note("Installing TARGET packages")
149 self._populate_sysroot(self.target_pm, self.target_manifest) 151 self._populate_sysroot(self.target_pm, self.target_manifest)
150 152
@@ -226,6 +228,8 @@ class OpkgSdk(Sdk):
226 [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY]) 228 [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
227 229
228 def _populate(self): 230 def _populate(self):
231 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_PRE_TARGET_COMMAND"))
232
229 bb.note("Installing TARGET packages") 233 bb.note("Installing TARGET packages")
230 self._populate_sysroot(self.target_pm, self.target_manifest) 234 self._populate_sysroot(self.target_pm, self.target_manifest)
231 235
@@ -308,6 +312,8 @@ class DpkgSdk(Sdk):
308 [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY]) 312 [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
309 313
310 def _populate(self): 314 def _populate(self):
315 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_PRE_TARGET_COMMAND"))
316
311 bb.note("Installing TARGET packages") 317 bb.note("Installing TARGET packages")
312 self._populate_sysroot(self.target_pm, self.target_manifest) 318 self._populate_sysroot(self.target_pm, self.target_manifest)
313 319