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/classes-recipe | |
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/classes-recipe')
-rw-r--r-- | meta/classes-recipe/devicetree.bbclass | 3 | ||||
-rw-r--r-- | meta/classes-recipe/kernel-fit-image.bbclass | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes-recipe/devicetree.bbclass b/meta/classes-recipe/devicetree.bbclass index 2a2ac93e9b..ce9d008aac 100644 --- a/meta/classes-recipe/devicetree.bbclass +++ b/meta/classes-recipe/devicetree.bbclass | |||
@@ -40,8 +40,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
40 | SYSROOT_DIRS += "/boot/devicetree" | 40 | SYSROOT_DIRS += "/boot/devicetree" |
41 | FILES:${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo" | 41 | FILES:${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo" |
42 | 42 | ||
43 | S = "${WORKDIR}/sources" | 43 | S = "${UNPACKDIR}" |
44 | UNPACKDIR = "${S}" | ||
45 | B = "${WORKDIR}/build" | 44 | B = "${WORKDIR}/build" |
46 | 45 | ||
47 | # Default kernel includes, these represent what are normally used for in-kernel | 46 | # Default kernel includes, these represent what are normally used for in-kernel |
diff --git a/meta/classes-recipe/kernel-fit-image.bbclass b/meta/classes-recipe/kernel-fit-image.bbclass index d2eebb88bc..39845997ed 100644 --- a/meta/classes-recipe/kernel-fit-image.bbclass +++ b/meta/classes-recipe/kernel-fit-image.bbclass | |||
@@ -2,8 +2,7 @@ | |||
2 | inherit kernel-arch kernel-artifact-names uboot-config deploy | 2 | inherit kernel-arch kernel-artifact-names uboot-config deploy |
3 | require conf/image-fitimage.conf | 3 | require conf/image-fitimage.conf |
4 | 4 | ||
5 | S = "${WORKDIR}/sources" | 5 | S = "${UNPACKDIR}" |
6 | UNPACKDIR = "${S}" | ||
7 | 6 | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
9 | 8 | ||