mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +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:
@@ -18,7 +18,7 @@
|
||||
inherit rust-common
|
||||
|
||||
# Where we download our registry and dependencies to
|
||||
export CARGO_HOME = "${WORKDIR}/cargo_home"
|
||||
export CARGO_HOME = "${UNPACKDIR}/cargo_home"
|
||||
|
||||
# The pkg-config-rs library used by cargo build scripts disables itself when
|
||||
# cross compiling unless this is defined. We set up pkg-config appropriately
|
||||
@@ -138,7 +138,7 @@ python cargo_common_do_patch_paths() {
|
||||
return
|
||||
|
||||
patches = dict()
|
||||
workdir = d.getVar('WORKDIR')
|
||||
workdir = d.getVar('UNPACKDIR')
|
||||
fetcher = bb.fetch2.Fetch(src_uri, d)
|
||||
for url in fetcher.urls:
|
||||
ud = fetcher.ud[url]
|
||||
|
||||
@@ -379,19 +379,19 @@ do_kernel_checkout() {
|
||||
set +e
|
||||
|
||||
source_dir=`echo ${S} | sed 's%/$%%'`
|
||||
source_workdir="${WORKDIR}/git"
|
||||
if [ -d "${WORKDIR}/git/" ]; then
|
||||
source_workdir="${UNPACKDIR}/git"
|
||||
if [ -d "${UNPACKDIR}/git/" ]; then
|
||||
# case: git repository
|
||||
# if S is WORKDIR/git, then we shouldn't be moving or deleting the tree.
|
||||
if [ "${source_dir}" != "${source_workdir}" ]; then
|
||||
if [ -d "${source_workdir}/.git" ]; then
|
||||
# regular git repository with .git
|
||||
rm -rf ${S}
|
||||
mv ${WORKDIR}/git ${S}
|
||||
mv ${UNPACKDIR}/git ${S}
|
||||
else
|
||||
# create source for bare cloned git repository
|
||||
git clone ${WORKDIR}/git ${S}
|
||||
rm -rf ${WORKDIR}/git
|
||||
rm -rf ${UNPACKDIR}/git
|
||||
fi
|
||||
fi
|
||||
cd ${S}
|
||||
@@ -434,7 +434,7 @@ do_kernel_checkout() {
|
||||
|
||||
set -e
|
||||
}
|
||||
do_kernel_checkout[dirs] = "${S} ${WORKDIR}"
|
||||
do_kernel_checkout[dirs] = "${S} ${UNPACKDIR}"
|
||||
|
||||
addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc
|
||||
addtask kernel_metadata after do_validate_branches do_unpack before do_patch
|
||||
|
||||
@@ -13,7 +13,7 @@ SRC_URI += "file://ptest-perl/run-ptest"
|
||||
do_install_ptest_perl() {
|
||||
install -d ${D}${PTEST_PATH}
|
||||
if [ ! -f ${D}${PTEST_PATH}/run-ptest ]; then
|
||||
install -m 0755 ${WORKDIR}/ptest-perl/run-ptest ${D}${PTEST_PATH}
|
||||
install -m 0755 ${UNPACKDIR}/ptest-perl/run-ptest ${D}${PTEST_PATH}
|
||||
fi
|
||||
cp -r ${B}/t ${D}${PTEST_PATH}
|
||||
chown -R root:root ${D}${PTEST_PATH}
|
||||
|
||||
Reference in New Issue
Block a user