diff options
author | Qi.Chen@windriver.com <Qi.Chen@windriver.com> | 2015-09-07 13:42:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-09 14:27:43 +0100 |
commit | ee428e27fed0da8651184cf3ac4a0dd39c4e9d9d (patch) | |
tree | 80af781a558304f74aa4995142a57c8310b5de71 /meta | |
parent | 2aaa59ed8e3bb72385e962ec3594da709b18fad8 (diff) | |
download | poky-ee428e27fed0da8651184cf3ac4a0dd39c4e9d9d.tar.gz |
devtool: add mechanism for updating extensible SDK
Enable updating the installed extensible SDK from a local or remote
server, avoiding the need to install it again from scratch when
updating. (This assumes that the updated SDK has been built and then
published somewhere using the oe-publish-sdk script beforehand.)
This plugin is only enabled when devtool is used within the extensible
SDK since it doesn't make sense to use it next to a normal install of
the build system.
E.g.
devtool sdk-update /mnt/sdk-repo/
devtool sdk-update http://mysdkhost/sdk
(From OE-Core rev: 32cbd4c57fc8ca097a18929fc404c07322ef36dd)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 0b012ebfc2..4ef8838e35 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -18,6 +18,7 @@ SDK_RELOCATE_AFTER_INSTALL_task-populate-sdk-ext = "0" | |||
18 | SDK_LOCAL_CONF_WHITELIST ?= "" | 18 | SDK_LOCAL_CONF_WHITELIST ?= "" |
19 | SDK_LOCAL_CONF_BLACKLIST ?= "CONF_VERSION BB_NUMBER_THREADS PARALLEL_MAKE PRSERV_HOST" | 19 | SDK_LOCAL_CONF_BLACKLIST ?= "CONF_VERSION BB_NUMBER_THREADS PARALLEL_MAKE PRSERV_HOST" |
20 | SDK_INHERIT_BLACKLIST ?= "buildhistory icecc" | 20 | SDK_INHERIT_BLACKLIST ?= "buildhistory icecc" |
21 | SDK_UPDATE_URL ?= "" | ||
21 | 22 | ||
22 | SDK_TARGETS ?= "${PN}" | 23 | SDK_TARGETS ?= "${PN}" |
23 | OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" | 24 | OE_INIT_ENV_SCRIPT ?= "oe-init-build-env" |
@@ -85,6 +86,11 @@ python copy_buildsystem () { | |||
85 | config.set('General', 'bitbake_subdir', conf_bbpath) | 86 | config.set('General', 'bitbake_subdir', conf_bbpath) |
86 | config.set('General', 'init_path', conf_initpath) | 87 | config.set('General', 'init_path', conf_initpath) |
87 | config.set('General', 'core_meta_subdir', core_meta_subdir) | 88 | config.set('General', 'core_meta_subdir', core_meta_subdir) |
89 | config.add_section('SDK') | ||
90 | config.set('SDK', 'sdk_targets', d.getVar('SDK_TARGETS', True)) | ||
91 | updateurl = d.getVar('SDK_UPDATE_URL', True) | ||
92 | if updateurl: | ||
93 | config.set('SDK', 'updateserver', updateurl) | ||
88 | bb.utils.mkdirhier(os.path.join(baseoutpath, 'conf')) | 94 | bb.utils.mkdirhier(os.path.join(baseoutpath, 'conf')) |
89 | with open(os.path.join(baseoutpath, 'conf', 'devtool.conf'), 'w') as f: | 95 | with open(os.path.join(baseoutpath, 'conf', 'devtool.conf'), 'w') as f: |
90 | config.write(f) | 96 | config.write(f) |