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-skeleton | |
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-skeleton')
4 files changed, 4 insertions, 8 deletions
diff --git a/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb b/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb index 79f2e8a092..e5f0ca1023 100644 --- a/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb +++ b/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb | |||
@@ -10,8 +10,7 @@ SRC_URI = "file://Makefile \ | |||
10 | file://COPYING \ | 10 | file://COPYING \ |
11 | " | 11 | " |
12 | 12 | ||
13 | S = "${WORKDIR}/sources" | 13 | S = "${UNPACKDIR}" |
14 | UNPACKDIR = "${S}" | ||
15 | 14 | ||
16 | # The inherit of module.bbclass will automatically name module packages with | 15 | # The inherit of module.bbclass will automatically name module packages with |
17 | # "kernel-module-" prefix as required by the oe-core build environment. | 16 | # "kernel-module-" prefix as required by the oe-core build environment. |
diff --git a/meta-skeleton/recipes-skeleton/hello-single/hello_1.0.bb b/meta-skeleton/recipes-skeleton/hello-single/hello_1.0.bb index 8be7980919..cb07b13974 100644 --- a/meta-skeleton/recipes-skeleton/hello-single/hello_1.0.bb +++ b/meta-skeleton/recipes-skeleton/hello-single/hello_1.0.bb | |||
@@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
5 | 5 | ||
6 | SRC_URI = "file://helloworld.c" | 6 | SRC_URI = "file://helloworld.c" |
7 | 7 | ||
8 | S = "${WORKDIR}/sources" | 8 | S = "${UNPACKDIR}" |
9 | UNPACKDIR = "${S}" | ||
10 | 9 | ||
11 | do_compile() { | 10 | do_compile() { |
12 | ${CC} ${LDFLAGS} helloworld.c -o helloworld | 11 | ${CC} ${LDFLAGS} helloworld.c -o helloworld |
diff --git a/meta-skeleton/recipes-skeleton/service/service_0.1.bb b/meta-skeleton/recipes-skeleton/service/service_0.1.bb index 54b834d45f..f249579310 100644 --- a/meta-skeleton/recipes-skeleton/service/service_0.1.bb +++ b/meta-skeleton/recipes-skeleton/service/service_0.1.bb | |||
@@ -9,8 +9,7 @@ SRC_URI = "file://skeleton \ | |||
9 | file://COPYRIGHT \ | 9 | file://COPYRIGHT \ |
10 | " | 10 | " |
11 | 11 | ||
12 | S = "${WORKDIR}/sources" | 12 | S = "${UNPACKDIR}" |
13 | UNPACKDIR = "${S}" | ||
14 | 13 | ||
15 | do_compile () { | 14 | do_compile () { |
16 | ${CC} ${CFLAGS} ${LDFLAGS} ${S}/skeleton_test.c -o ${B}/skeleton-test | 15 | ${CC} ${CFLAGS} ${LDFLAGS} ${S}/skeleton_test.c -o ${B}/skeleton-test |
diff --git a/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb b/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb index b0d96e7f71..5783d9e245 100644 --- a/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb +++ b/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb | |||
@@ -9,8 +9,7 @@ SRC_URI = "file://file1 \ | |||
9 | file://file3 \ | 9 | file://file3 \ |
10 | file://file4" | 10 | file://file4" |
11 | 11 | ||
12 | S = "${WORKDIR}/sources" | 12 | S = "${UNPACKDIR}" |
13 | UNPACKDIR = "${S}" | ||
14 | 13 | ||
15 | PACKAGES =+ "${PN}-user3" | 14 | PACKAGES =+ "${PN}-user3" |
16 | 15 | ||