summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-28 11:56:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 07:43:32 +0100
commit434665d9334d739e3b8177bdaee83a5b28d6670f (patch)
treecaf19ea1bef0d530379e08776a58aecdf550b5c0 /meta/classes/populate_sdk_base.bbclass
parent5bfcd13c074a69cfb1cf9108cbccee472bad4409 (diff)
downloadpoky-434665d9334d739e3b8177bdaee83a5b28d6670f.tar.gz
populate_sdk_base: Simplify postprocess commands
When looking at and trying to build a slightly customised SDK, I realised the code could be simplified and written in a way which was more customisable. This patch moves various function calls into the SDK_POSTPROCESS_COMMAND which was intended for this kind of use. (From OE-Core rev: baa4e43a29e45df17eaa3456acc179b08d571db6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass10
1 files changed, 1 insertions, 9 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index aa7a9a5b47..36876e8482 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -80,6 +80,7 @@ python write_host_sdk_manifest () {
80 80
81POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; " 81POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
82POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; " 82POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; "
83SDK_POSTPROCESS_COMMAND = " create_sdk_files; tar_sdk; ${SDK_PACKAGING_FUNC}; "
83 84
84# Some archs override this, we need the nativesdk version 85# Some archs override this, we need the nativesdk version
85# turns out this is hard to get from the datastore due to TRANSLATED_TARGET_ARCH 86# turns out this is hard to get from the datastore due to TRANSLATED_TARGET_ARCH
@@ -108,15 +109,6 @@ fakeroot python do_populate_sdk() {
108 manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET) 109 manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
109 110
110 populate_sdk(d) 111 populate_sdk(d)
111
112 # Process DEFAULTTUNE
113 bb.build.exec_func("create_sdk_files", d)
114
115 bb.build.exec_func("tar_sdk", d)
116
117 sdk_packaging_func = d.getVar("SDK_PACKAGING_FUNC", True) or ""
118 if sdk_packaging_func.strip():
119 bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
120} 112}
121 113
122fakeroot create_sdk_files() { 114fakeroot create_sdk_files() {