diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-06-16 11:49:56 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-20 12:07:26 +0100 |
| commit | efb0410d388cb389a18e299b87fdb3554d527b39 (patch) | |
| tree | 0ba990254e449a421ab7ec56c3409c69e9100d24 /meta/recipes-kernel | |
| parent | e1f059f34e7f1e6a252aff1ec5b1eb3376bd4d65 (diff) | |
| download | poky-efb0410d388cb389a18e299b87fdb3554d527b39.tar.gz | |
meta: set S from UNPACKDIR in recipes that use only local files
There is no need to have two assignments; also setting S from
UNPACKDIR (and not vice versa) is more logical as unpack
task comes first, and tasks that come after unpack use S to access
unpack results.
Also adjust reference test data in selftest/recipeutils to reflect changes in test recipes.
(From OE-Core rev: f64b7e5fb3181734c8dde87b27e872a026261a74)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
5 files changed, 5 insertions, 10 deletions
diff --git a/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb b/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb index a766b00bef..b19f53e20d 100644 --- a/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb +++ b/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb | |||
| @@ -7,8 +7,7 @@ SRC_URI = "file://dt-doc-validate \ | |||
| 7 | file://dt-mk-schema \ | 7 | file://dt-mk-schema \ |
| 8 | file://dt-validate" | 8 | file://dt-validate" |
| 9 | 9 | ||
| 10 | S = "${WORKDIR}/sources" | 10 | S = "${UNPACKDIR}" |
| 11 | UNPACKDIR = "${S}" | ||
| 12 | 11 | ||
| 13 | do_install() { | 12 | do_install() { |
| 14 | install -d ${D}${bindir}/ | 13 | install -d ${D}${bindir}/ |
diff --git a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb index 29f34d7f36..5e70e01102 100644 --- a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb +++ b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | SUMMARY = "Wrapper script for the Linux kernel module dependency indexer" | 1 | SUMMARY = "Wrapper script for the Linux kernel module dependency indexer" |
| 2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
| 3 | 3 | ||
| 4 | S = "${WORKDIR}/sources" | 4 | S = "${UNPACKDIR}" |
| 5 | UNPACKDIR = "${S}" | ||
| 6 | 5 | ||
| 7 | INHIBIT_DEFAULT_DEPS = "1" | 6 | INHIBIT_DEFAULT_DEPS = "1" |
| 8 | # The kernel and the staging dir for it is machine specific | 7 | # The kernel and the staging dir for it is machine specific |
diff --git a/meta/recipes-kernel/linux/linux-dummy.bb b/meta/recipes-kernel/linux/linux-dummy.bb index 3e9a563cad..f52e3a7b56 100644 --- a/meta/recipes-kernel/linux/linux-dummy.bb +++ b/meta/recipes-kernel/linux/linux-dummy.bb | |||
| @@ -31,8 +31,7 @@ COMPATIBLE_HOST = ".*-linux" | |||
| 31 | 31 | ||
| 32 | SRC_URI = "file://COPYING.GPL" | 32 | SRC_URI = "file://COPYING.GPL" |
| 33 | 33 | ||
| 34 | S = "${WORKDIR}/sources" | 34 | S = "${UNPACKDIR}" |
| 35 | UNPACKDIR = "${S}" | ||
| 36 | 35 | ||
| 37 | do_configure() { | 36 | do_configure() { |
| 38 | : | 37 | : |
diff --git a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb index 1a20472994..8fcb5e6eb3 100644 --- a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb +++ b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb | |||
| @@ -8,8 +8,7 @@ inherit pkgconfig | |||
| 8 | 8 | ||
| 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 10 | 10 | ||
| 11 | S = "${WORKDIR}/sources" | 11 | S = "${UNPACKDIR}" |
| 12 | UNPACKDIR = "${S}" | ||
| 13 | 12 | ||
| 14 | do_configure[depends] += "virtual/kernel:do_shared_workdir openssl-native:do_populate_sysroot" | 13 | do_configure[depends] += "virtual/kernel:do_shared_workdir openssl-native:do_populate_sysroot" |
| 15 | do_compile[depends] += "virtual/kernel:do_compile_kernelmodules" | 14 | do_compile[depends] += "virtual/kernel:do_compile_kernelmodules" |
diff --git a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb index 49268445a8..fb7b09393a 100644 --- a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb +++ b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb | |||
| @@ -4,8 +4,7 @@ LICENSE = "MIT" | |||
| 4 | LIC_FILES_CHKSUM = "file://modutils.sh;beginline=3;endline=3;md5=b2dccaa94b3629a08bfb4f983cad6f89" | 4 | LIC_FILES_CHKSUM = "file://modutils.sh;beginline=3;endline=3;md5=b2dccaa94b3629a08bfb4f983cad6f89" |
| 5 | SRC_URI = "file://modutils.sh" | 5 | SRC_URI = "file://modutils.sh" |
| 6 | 6 | ||
| 7 | S = "${WORKDIR}/sources" | 7 | S = "${UNPACKDIR}" |
| 8 | UNPACKDIR = "${S}" | ||
| 9 | 8 | ||
| 10 | INITSCRIPT_NAME = "modutils.sh" | 9 | INITSCRIPT_NAME = "modutils.sh" |
| 11 | INITSCRIPT_PARAMS = "start 06 S ." | 10 | INITSCRIPT_PARAMS = "start 06 S ." |
