diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-30 14:23:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-02 15:15:51 +0100 |
commit | 0ea63b6a439fe97f840c69d08cf381687baaae3f (patch) | |
tree | c632ba15d6b67617859f335fe9263930cbf1a0fa /meta-selftest | |
parent | 3288587aeb009fb65652776242c0a526b90771e2 (diff) | |
download | poky-0ea63b6a439fe97f840c69d08cf381687baaae3f.tar.gz |
recipes: Update WORKDIR references to UNPACKDIR
Since we want to be able to stop unpacking to WORKDIR, correct the WORKDIR
references in recipe do_compile/do_install tasks to use UNPACKDIR in the
appropraite places instead.
(From OE-Core rev: d73595df69667fe9d12ecd407b77a0b8dae2109c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
3 files changed, 10 insertions, 10 deletions
diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb index 3a46404477..a897966608 100644 --- a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb +++ b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb | |||
@@ -11,7 +11,7 @@ SECURITY_CFLAGS = "" | |||
11 | SECURITY_LDFLAGS = "" | 11 | SECURITY_LDFLAGS = "" |
12 | 12 | ||
13 | do_compile() { | 13 | do_compile() { |
14 | ${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello | 14 | ${FC} ${LDFLAGS} ${UNPACKDIR}/hello.f95 -o ${B}/fortran-hello |
15 | } | 15 | } |
16 | 16 | ||
17 | do_install() { | 17 | do_install() { |
diff --git a/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb b/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb index e127b48b15..7698413d4d 100644 --- a/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb +++ b/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb | |||
@@ -17,20 +17,20 @@ SRC_URI = "file://installscript.sh \ | |||
17 | EXCLUDE_FROM_WORLD = "1" | 17 | EXCLUDE_FROM_WORLD = "1" |
18 | 18 | ||
19 | install_extrafunc() { | 19 | install_extrafunc() { |
20 | install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func | 20 | install -m 0644 ${UNPACKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func |
21 | } | 21 | } |
22 | 22 | ||
23 | do_install() { | 23 | do_install() { |
24 | install -d ${D}${datadir}/ | 24 | install -d ${D}${datadir}/ |
25 | install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig | 25 | install -m 0644 ${UNPACKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig |
26 | install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir} | 26 | install -m 0644 ${UNPACKDIR}/selftest-replaceme-todir ${D}${datadir} |
27 | install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed | 27 | install -m 0644 ${UNPACKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed |
28 | install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir | 28 | install -m 0644 ${UNPACKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir |
29 | cp ${WORKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile | 29 | cp ${UNPACKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile |
30 | cp ${WORKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir} | 30 | cp ${UNPACKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir} |
31 | install -d ${D}${sysconfdir} | 31 | install -d ${D}${sysconfdir} |
32 | install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched | 32 | install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched |
33 | sh ${WORKDIR}/installscript.sh ${D}${datadir} | 33 | sh ${UNPACKDIR}/installscript.sh ${D}${datadir} |
34 | install_extrafunc | 34 | install_extrafunc |
35 | } | 35 | } |
36 | 36 | ||
diff --git a/meta-selftest/recipes-test/wrapper/cmdline-shebang-wrapper-test.bb b/meta-selftest/recipes-test/wrapper/cmdline-shebang-wrapper-test.bb index c3d3548d4a..c91d00c8d9 100644 --- a/meta-selftest/recipes-test/wrapper/cmdline-shebang-wrapper-test.bb +++ b/meta-selftest/recipes-test/wrapper/cmdline-shebang-wrapper-test.bb | |||
@@ -9,7 +9,7 @@ EXCLUDE_FROM_WORLD = "1" | |||
9 | do_install() { | 9 | do_install() { |
10 | install -d ${D}${bindir} | 10 | install -d ${D}${bindir} |
11 | # was not able to make ownership preservation check | 11 | # was not able to make ownership preservation check |
12 | install -m 0400 ${WORKDIR}/test.awk ${D}${bindir}/test | 12 | install -m 0400 ${UNPACKDIR}/test.awk ${D}${bindir}/test |
13 | 13 | ||
14 | perm_old="$(stat --format='%a' ${D}${bindir}/test)" | 14 | perm_old="$(stat --format='%a' ${D}${bindir}/test)" |
15 | sed -i -e 's|@AWK_BIN@|${bindir}/awk|g' ${D}${bindir}/test | 15 | sed -i -e 's|@AWK_BIN@|${bindir}/awk|g' ${D}${bindir}/test |