diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 08:11:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 11:46:26 +0100 |
commit | e8de01e7989ae3e89397b3cdb3b3e8caa8957364 (patch) | |
tree | 02f974e7ef24e88e7974621f1dae426796edd200 | |
parent | a74792b15dd6365d404f2e55f1e7a0ba7c2d129d (diff) | |
download | poky-e8de01e7989ae3e89397b3cdb3b3e8caa8957364.tar.gz |
testexport: Fix to work as an image class
The class is mainly an image based class but one recipe does need to look
at values shared with the class and isn't an image. Move this to a conf
file instead, avoiding the need to pollute all recipes globally.
(From OE-Core rev: ed4238487c81b3580e83c257b50745a832a6e717)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/testexport.bbclass | 5 | ||||
-rw-r--r-- | meta/conf/testexport.conf | 3 | ||||
-rw-r--r-- | meta/recipes-core/meta/testexport-tarball.bb | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index 1b0fb44a4a..b503c8d357 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass | |||
@@ -23,10 +23,9 @@ TEST_TARGET ?= "simpleremote" | |||
23 | TEST_TARGET_IP ?= "" | 23 | TEST_TARGET_IP ?= "" |
24 | TEST_SERVER_IP ?= "" | 24 | TEST_SERVER_IP ?= "" |
25 | 25 | ||
26 | TEST_EXPORT_SDK_PACKAGES ?= "" | 26 | require conf/testexport.conf |
27 | |||
27 | TEST_EXPORT_SDK_ENABLED ?= "0" | 28 | TEST_EXPORT_SDK_ENABLED ?= "0" |
28 | TEST_EXPORT_SDK_NAME ?= "testexport-tools-nativesdk" | ||
29 | TEST_EXPORT_SDK_DIR ?= "sdk" | ||
30 | 29 | ||
31 | TEST_EXPORT_DEPENDS = "" | 30 | TEST_EXPORT_DEPENDS = "" |
32 | TEST_EXPORT_DEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'cpio-native:do_populate_sysroot', '', d)}" | 31 | TEST_EXPORT_DEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'cpio-native:do_populate_sysroot', '', d)}" |
diff --git a/meta/conf/testexport.conf b/meta/conf/testexport.conf new file mode 100644 index 0000000000..8880f108fb --- /dev/null +++ b/meta/conf/testexport.conf | |||
@@ -0,0 +1,3 @@ | |||
1 | TEST_EXPORT_SDK_PACKAGES ?= "" | ||
2 | TEST_EXPORT_SDK_DIR ?= "sdk" | ||
3 | TEST_EXPORT_SDK_NAME ?= "testexport-tools-nativesdk" | ||
diff --git a/meta/recipes-core/meta/testexport-tarball.bb b/meta/recipes-core/meta/testexport-tarball.bb index bb9f8ded48..abdd009252 100644 --- a/meta/recipes-core/meta/testexport-tarball.bb +++ b/meta/recipes-core/meta/testexport-tarball.bb | |||
@@ -4,7 +4,7 @@ DESCRIPTION = "SDK type target for standalone tarball containing packages define | |||
4 | SUMMARY = "Standalone tarball for test systems with missing software" | 4 | SUMMARY = "Standalone tarball for test systems with missing software" |
5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
6 | 6 | ||
7 | TEST_EXPORT_SDK_PACKAGES ??= "" | 7 | require conf/testexport.conf |
8 | 8 | ||
9 | TOOLCHAIN_TARGET_TASK ?= "" | 9 | TOOLCHAIN_TARGET_TASK ?= "" |
10 | 10 | ||