diff options
| author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-06-14 14:30:47 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-06 14:38:13 +0100 |
| commit | a4ada62a21d2bbb2a945dfbea19dec794303d42e (patch) | |
| tree | cafec065c840cc384d87cf2fbe49e3a1d64f4eaf /meta/lib/oe/sdk.py | |
| parent | 7fd1491d2f07c4a6b5dda78a92c1c17f544d642d (diff) | |
| download | poky-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/lib/oe/sdk.py')
| -rw-r--r-- | meta/lib/oe/sdk.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 | ||
