mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR. (From OE-Core rev: 1f18b9a512800860d5153d89eb82b56388efad6f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -49,7 +49,7 @@ DEPENDS += "db gnutls lz4 zlib bzip2 xz libgcrypt xxhash"
|
||||
|
||||
EXTRA_OECMAKE:append = " -DCURRENT_VENDOR=debian -DWITH_DOC=False \
|
||||
-DDPKG_DATADIR=${datadir}/dpkg \
|
||||
-DTRIEHASH_EXECUTABLE=${WORKDIR}/triehash \
|
||||
-DTRIEHASH_EXECUTABLE=${UNPACKDIR}/triehash \
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_ZSTD=True \
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_SECCOMP=True \
|
||||
-DWITH_TESTS=False \
|
||||
|
||||
@@ -29,7 +29,7 @@ inherit native
|
||||
do_configure() {
|
||||
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/autoconf
|
||||
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/autoconf
|
||||
install -m 0644 ${WORKDIR}/riscv64-linux-gcc.rul ${S}/RULES/
|
||||
install -m 0644 ${UNPACKDIR}/riscv64-linux-gcc.rul ${S}/RULES/
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
||||
@@ -51,7 +51,7 @@ do_install () {
|
||||
}
|
||||
|
||||
do_install_ptest () {
|
||||
cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/lua-${PV_testsuites}-tests ${D}${PTEST_PATH}/test
|
||||
cp -R --no-dereference --preserve=mode,links -v ${UNPACKDIR}/lua-${PV_testsuites}-tests ${D}${PTEST_PATH}/test
|
||||
}
|
||||
|
||||
do_install_ptest:append:libc-musl () {
|
||||
|
||||
@@ -6,7 +6,7 @@ SECTION = "devel"
|
||||
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
|
||||
# README.md is taken from https://github.com/arsv/perl-cross/blob/master/README.md
|
||||
# but is not provided inside the release tarballs
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/README.md;md5=252fcce2026b765fee1ad74d2fb07a3b"
|
||||
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/README.md;md5=252fcce2026b765fee1ad74d2fb07a3b"
|
||||
|
||||
inherit allarch github-releases
|
||||
|
||||
|
||||
@@ -331,7 +331,7 @@ python split_perl_packages () {
|
||||
d.setVar(d.expand("RDEPENDS:${PN}-modules"), ' '.join(packages))
|
||||
|
||||
# Read the pre-generated dependency file, and use it to set module dependecies
|
||||
for line in open(d.expand("${WORKDIR}") + '/perl-rdepends.txt').readlines():
|
||||
for line in open(d.getVar("UNPACKDIR") + '/perl-rdepends.txt').readlines():
|
||||
splitline = line.split()
|
||||
# Filter empty lines and comments
|
||||
if len(splitline) == 0 or splitline[0].startswith("#"):
|
||||
|
||||
@@ -49,7 +49,7 @@ RDEPENDS:${PN}-ptest += " \
|
||||
inherit ptest
|
||||
|
||||
do_install_ptest() {
|
||||
install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/
|
||||
install -D ${UNPACKDIR}/check-memfree.py ${D}${PTEST_PATH}/
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
# remove test_x509.py as it needs benchmark and we don't
|
||||
|
||||
@@ -32,8 +32,8 @@ RDEPENDS:${PN}-ptest += " \
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/examples
|
||||
install -m 0755 ${WORKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/
|
||||
install -m 0755 ${WORKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/
|
||||
install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/
|
||||
install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -34,7 +34,7 @@ RDEPENDS:${PN}-ptest += " \
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${WORKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${UNPACKDIR}/test_dump_load.py ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -67,7 +67,7 @@ DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptes
|
||||
PACKAGE_WRITE_DEPS += "ptest-runner"
|
||||
|
||||
do_install_ptest() {
|
||||
install ${WORKDIR}/test.sh ${D}${PTEST_PATH}
|
||||
install ${UNPACKDIR}/test.sh ${D}${PTEST_PATH}
|
||||
mkdir ${D}${PTEST_PATH}/test
|
||||
install ${S}/test/* ${D}${PTEST_PATH}/test
|
||||
# mail needs a MTA, and the patch-wrapper is disabled
|
||||
|
||||
@@ -22,7 +22,7 @@ inherit cargo pkgconfig
|
||||
DEBUG_PREFIX_MAP += "-fdebug-prefix-map=${RUSTSRC}/vendor=${TARGET_DBGSRC_DIR}"
|
||||
|
||||
do_cargo_setup_snapshot () {
|
||||
${WORKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig
|
||||
${UNPACKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig
|
||||
# Need to use uninative's loader if enabled/present since the library paths
|
||||
# are used internally by rust and result in symbol mismatches if we don't
|
||||
if [ ! -z "${UNINATIVE_LOADER}" -a -e "${UNINATIVE_LOADER}" ]; then
|
||||
|
||||
@@ -48,7 +48,7 @@ setup_cargo_environment () {
|
||||
inherit rust-target-config
|
||||
|
||||
do_rust_setup_snapshot () {
|
||||
for installer in "${WORKDIR}/rust-snapshot-components/"*"/install.sh"; do
|
||||
for installer in "${UNPACKDIR}/rust-snapshot-components/"*"/install.sh"; do
|
||||
"${installer}" --prefix="${WORKDIR}/rust-snapshot" --disable-ldconfig
|
||||
done
|
||||
|
||||
|
||||
@@ -194,9 +194,9 @@ do_install_ptest() {
|
||||
|
||||
# The scripts reference config.h so add it to the top ptest dir.
|
||||
cp ${B}/config.h ${D}${PTEST_PATH}
|
||||
install -D ${WORKDIR}/remove-for-aarch64 ${D}${PTEST_PATH}
|
||||
install -D ${WORKDIR}/remove-for-all ${D}${PTEST_PATH}
|
||||
install -D ${WORKDIR}/taskset_nondeterministic_tests ${D}${PTEST_PATH}
|
||||
install -D ${UNPACKDIR}/remove-for-aarch64 ${D}${PTEST_PATH}
|
||||
install -D ${UNPACKDIR}/remove-for-all ${D}${PTEST_PATH}
|
||||
install -D ${UNPACKDIR}/taskset_nondeterministic_tests ${D}${PTEST_PATH}
|
||||
|
||||
# Add an executable need by none/tests/bigcode
|
||||
mkdir ${D}${PTEST_PATH}/perf
|
||||
|
||||
Reference in New Issue
Block a user