summaryrefslogtreecommitdiff
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-11-25 12:30:12 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:03:53 +0000
commitbff1b66c6b88fd2d99d14cecba27ee2f7462711f (patch)
tree910a117150366b74a04c946df16f77eeb6d27b71 /meta/classes/populate_sdk_base.bbclass
parent4c0061422df472395ca0caa76ef92adb860f1167 (diff)
downloadopenembedded-core-bff1b66c6b88fd2d99d14cecba27ee2f7462711f.tar.gz
openembedded-core-bff1b66c6b88fd2d99d14cecba27ee2f7462711f.tar.bz2
openembedded-core-bff1b66c6b88fd2d99d14cecba27ee2f7462711f.zip
classes/populate_sdk_base: Add write_sdk_test_data to postprocess
This function will generates testdata.json per SDK type. [YOCTO #10231] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 8d117a9542..5ad08c68e3 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -70,6 +70,13 @@ python write_target_sdk_manifest () {
output.write(format_pkg_list(pkgs, 'ver'))
}
+python write_sdk_test_data() {
+ from oe.data import export2json
+ testdata = "%s/%s.testdata.json" % (d.getVar('SDKDEPLOYDIR', True), d.getVar('TOOLCHAIN_OUTPUTNAME', True))
+ bb.utils.mkdirhier(os.path.dirname(testdata))
+ export2json(d, testdata)
+}
+
python write_host_sdk_manifest () {
from oe.sdk import sdk_list_installed_packages
from oe.utils import format_pkg_list
@@ -81,7 +88,7 @@ python write_host_sdk_manifest () {
output.write(format_pkg_list(pkgs, 'ver'))
}
-POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
+POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; write_sdk_test_data ; "
POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; "
SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC};' if '${SDK_PACKAGING_FUNC}' else ''}"
SDK_POSTPROCESS_COMMAND = " create_sdk_files; check_sdk_sysroots; tar_sdk; ${SDK_PACKAGING_COMMAND} "