summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/selftest-hello
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-06-16 11:49:56 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-20 12:07:26 +0100
commitefb0410d388cb389a18e299b87fdb3554d527b39 (patch)
tree0ba990254e449a421ab7ec56c3409c69e9100d24 /meta-selftest/recipes-test/selftest-hello
parente1f059f34e7f1e6a252aff1ec5b1eb3376bd4d65 (diff)
downloadpoky-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-selftest/recipes-test/selftest-hello')
-rw-r--r--meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb
index 2dc352d479..0ffe7308ba 100644
--- a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb
+++ b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb
@@ -5,8 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
5 5
6SRC_URI = "file://helloworld.c" 6SRC_URI = "file://helloworld.c"
7 7
8S = "${WORKDIR}/sources" 8S = "${UNPACKDIR}"
9UNPACKDIR = "${S}"
10 9
11do_compile() { 10do_compile() {
12 ${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld 11 ${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld