diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-11-25 12:30:12 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | ad2168365f87392035a93cf2cd86ccedc3d5e378 (patch) | |
tree | 35bf8f202718c8790c561beec2a07f60800fbb3d /meta/classes/populate_sdk_base.bbclass | |
parent | 60e5310f56c6148675c42a170529a57381d6da12 (diff) | |
download | poky-ad2168365f87392035a93cf2cd86ccedc3d5e378.tar.gz |
classes/populate_sdk_base: Add write_sdk_test_data to postprocess
This function will generates testdata.json per SDK type.
[YOCTO #10231]
(From OE-Core rev: bff1b66c6b88fd2d99d14cecba27ee2f7462711f)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
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.bbclass | 9 |
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 () { | |||
70 | output.write(format_pkg_list(pkgs, 'ver')) | 70 | output.write(format_pkg_list(pkgs, 'ver')) |
71 | } | 71 | } |
72 | 72 | ||
73 | python write_sdk_test_data() { | ||
74 | from oe.data import export2json | ||
75 | testdata = "%s/%s.testdata.json" % (d.getVar('SDKDEPLOYDIR', True), d.getVar('TOOLCHAIN_OUTPUTNAME', True)) | ||
76 | bb.utils.mkdirhier(os.path.dirname(testdata)) | ||
77 | export2json(d, testdata) | ||
78 | } | ||
79 | |||
73 | python write_host_sdk_manifest () { | 80 | python write_host_sdk_manifest () { |
74 | from oe.sdk import sdk_list_installed_packages | 81 | from oe.sdk import sdk_list_installed_packages |
75 | from oe.utils import format_pkg_list | 82 | from oe.utils import format_pkg_list |
@@ -81,7 +88,7 @@ python write_host_sdk_manifest () { | |||
81 | output.write(format_pkg_list(pkgs, 'ver')) | 88 | output.write(format_pkg_list(pkgs, 'ver')) |
82 | } | 89 | } |
83 | 90 | ||
84 | POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; " | 91 | POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; write_sdk_test_data ; " |
85 | POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; " | 92 | POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; " |
86 | SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC};' if '${SDK_PACKAGING_FUNC}' else ''}" | 93 | SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC};' if '${SDK_PACKAGING_FUNC}' else ''}" |
87 | SDK_POSTPROCESS_COMMAND = " create_sdk_files; check_sdk_sysroots; tar_sdk; ${SDK_PACKAGING_COMMAND} " | 94 | SDK_POSTPROCESS_COMMAND = " create_sdk_files; check_sdk_sysroots; tar_sdk; ${SDK_PACKAGING_COMMAND} " |