mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
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>
This commit is contained in:
@@ -132,7 +132,7 @@ do_install () {
|
||||
|
||||
oe_runmake install NO_PYTHON_COMPILE=1
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/bootchartd_stop.sh ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${UNPACKDIR}/bootchartd_stop.sh ${D}${sysconfdir}/init.d
|
||||
|
||||
echo 'EXIT_PROC="$EXIT_PROC matchbox-window-manager"' >> ${D}${sysconfdir}/bootchartd.conf
|
||||
|
||||
|
||||
@@ -54,9 +54,9 @@ do_install() {
|
||||
# The following codes are here because eSDK needs to provide compatibilty
|
||||
# for SDK. That is, eSDK could also be used like traditional SDK.
|
||||
mkdir -p ${D}${datadir}/cmake
|
||||
install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
|
||||
install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
|
||||
mkdir -p ${D}${base_prefix}/environment-setup.d
|
||||
install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${base_prefix}/environment-setup.d/cmake.sh
|
||||
install -m 644 ${UNPACKDIR}/environment.d-cmake.sh ${D}${base_prefix}/environment-setup.d/cmake.sh
|
||||
|
||||
# Help docs create tons of files in the native sysroot and aren't needed there
|
||||
rm -rf ${D}${datadir}/cmake-*/Help
|
||||
|
||||
@@ -48,15 +48,15 @@ EXTRA_OECMAKE=" \
|
||||
|
||||
do_install:append:class-nativesdk() {
|
||||
mkdir -p ${D}${datadir}/cmake
|
||||
install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
|
||||
install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
|
||||
|
||||
mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
|
||||
install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh
|
||||
install -m 644 ${UNPACKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh
|
||||
|
||||
# install cmake-setup.py to create arch-specific toolchain cmake file from template
|
||||
install -m 0644 ${WORKDIR}/SDKToolchainConfig.cmake.template ${D}${datadir}/cmake/
|
||||
install -m 0644 ${UNPACKDIR}/SDKToolchainConfig.cmake.template ${D}${datadir}/cmake/
|
||||
install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d
|
||||
install -m 0755 ${WORKDIR}/cmake-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
install -m 0755 ${UNPACKDIR}/cmake-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
}
|
||||
|
||||
FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}"
|
||||
|
||||
@@ -50,10 +50,10 @@ do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' "GZIP_BIN=gzip -n" install
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -d ${D}${sysconfdir}/default
|
||||
install -m 0755 ${WORKDIR}/distcc ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/distcc
|
||||
install -m 0755 ${UNPACKDIR}/distcc ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${UNPACKDIR}/default ${D}${sysconfdir}/default/distcc
|
||||
install -d ${D}${systemd_system_unitdir}/
|
||||
install -m 0644 ${WORKDIR}/distcc.service ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${UNPACKDIR}/distcc.service ${D}${systemd_system_unitdir}
|
||||
sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_system_unitdir}/distcc.service
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ do_compile[noexec] = "1"
|
||||
do_install () {
|
||||
install -d ${D}${datadir}/gnu-config \
|
||||
${D}${bindir}
|
||||
cat ${WORKDIR}/gnu-configize.in | \
|
||||
cat ${UNPACKDIR}/gnu-configize.in | \
|
||||
sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
|
||||
-e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
|
||||
# In the native case we want the system perl as perl-native can't have built yet
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
SUMMARY = "Generates Icecream toolchain for SDK"
|
||||
DESCRIPTION = "${SUMMARY}"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/icecc-env.sh;beginline=2;endline=20;md5=dd6b68c1efed8a9fb04e409b3b287d47"
|
||||
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/icecc-env.sh;beginline=2;endline=20;md5=dd6b68c1efed8a9fb04e409b3b287d47"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
@@ -23,12 +23,12 @@ do_install() {
|
||||
install -d ${D}${SDKPATHNATIVE}${datadir}/icecream/bin
|
||||
|
||||
install -d ${D}${SDKPATHNATIVE}/environment-setup.d/
|
||||
install -m 0644 ${WORKDIR}/icecc-env.sh ${D}${SDKPATHNATIVE}/environment-setup.d/
|
||||
install -m 0644 ${UNPACKDIR}/icecc-env.sh ${D}${SDKPATHNATIVE}/environment-setup.d/
|
||||
sed -i ${D}${SDKPATHNATIVE}/environment-setup.d/icecc-env.sh \
|
||||
-e 's,@TOOLCHAIN_ENV@,${ENV_NAME},g'
|
||||
|
||||
install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
install -m 0755 ${WORKDIR}/icecc-setup.sh ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
install -m 0755 ${UNPACKDIR}/icecc-setup.sh ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
sed -i ${D}${SDKPATHNATIVE}/post-relocate-setup.d/icecc-setup.sh \
|
||||
-e 's,@TOOLCHAIN_ENV@,${ENV_NAME},g'
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ SYSROOT_PREPROCESS_FUNCS:append:class-target = " llvm_sysroot_preprocess"
|
||||
|
||||
llvm_sysroot_preprocess() {
|
||||
install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
||||
install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
||||
install -m 0755 ${UNPACKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
|
||||
ln -sf llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/llvm-config${PV}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ do_install () {
|
||||
install
|
||||
install -d ${D}${libdir}/pkgconfig
|
||||
|
||||
sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${WORKDIR}/lua.pc.in > ${WORKDIR}/lua.pc
|
||||
install -m 0644 ${WORKDIR}/lua.pc ${D}${libdir}/pkgconfig/
|
||||
sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc
|
||||
install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/
|
||||
rmdir ${D}${datadir}/lua/5.4
|
||||
rmdir ${D}${datadir}/lua
|
||||
}
|
||||
|
||||
@@ -132,11 +132,11 @@ do_install:append:class-nativesdk() {
|
||||
install_templates
|
||||
|
||||
install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d
|
||||
install -m 0755 ${WORKDIR}/meson-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
install -m 0755 ${UNPACKDIR}/meson-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/
|
||||
|
||||
# We need to wrap the real meson with a thin env setup wrapper.
|
||||
mv ${D}${bindir}/meson ${D}${bindir}/meson.real
|
||||
install -m 0755 ${WORKDIR}/meson-wrapper ${D}${bindir}/meson
|
||||
install -m 0755 ${UNPACKDIR}/meson-wrapper ${D}${bindir}/meson
|
||||
}
|
||||
|
||||
FILES:${PN}:append:class-nativesdk = "${datadir}/meson ${SDKPATHNATIVE}"
|
||||
@@ -149,10 +149,10 @@ do_install:append:class-native() {
|
||||
install_templates
|
||||
|
||||
install -d ${D}${datadir}/post-relocate-setup.d
|
||||
install -m 0755 ${WORKDIR}/meson-setup.py ${D}${datadir}/post-relocate-setup.d/
|
||||
install -m 0755 ${UNPACKDIR}/meson-setup.py ${D}${datadir}/post-relocate-setup.d/
|
||||
|
||||
# We need to wrap the real meson with a thin wrapper that substitues native/cross files
|
||||
# when running in a direct SDK environment.
|
||||
mv ${D}${bindir}/meson ${D}${bindir}/meson.real
|
||||
install -m 0755 ${WORKDIR}/meson-wrapper ${D}${bindir}/meson
|
||||
install -m 0755 ${UNPACKDIR}/meson-wrapper ${D}${bindir}/meson
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ EXTRA_OECONF:append:class-native = " --localstatedir=/${@os.path.relpath('${loca
|
||||
|
||||
do_install:append () {
|
||||
install -d ${D}${sysconfdir}/opkg
|
||||
install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
|
||||
install -m 0644 ${UNPACKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
|
||||
echo "option lists_dir ${OPKGLIBDIR}/opkg/lists" >>${D}${sysconfdir}/opkg/opkg.conf
|
||||
echo "option info_dir ${OPKGLIBDIR}/opkg/info" >>${D}${sysconfdir}/opkg/opkg.conf
|
||||
echo "option status_file ${OPKGLIBDIR}/opkg/status" >>${D}${sysconfdir}/opkg/opkg.conf
|
||||
|
||||
@@ -29,18 +29,18 @@ EXTRA_OECONF += "--with-pkg-config-dir='${libdir}/pkgconfig:${datadir}/pkgconfig
|
||||
do_install:append () {
|
||||
# Install a wrapper which deals, as much as possible with pkgconf vs
|
||||
# pkg-config compatibility issues.
|
||||
install -m 0755 "${WORKDIR}/pkg-config-wrapper" "${D}${bindir}/pkg-config"
|
||||
install -m 0755 "${UNPACKDIR}/pkg-config-wrapper" "${D}${bindir}/pkg-config"
|
||||
}
|
||||
|
||||
do_install:append:class-native () {
|
||||
# Install a pkg-config-native wrapper that will use the native sysroot instead
|
||||
# of the MACHINE sysroot, for using pkg-config when building native tools.
|
||||
sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
|
||||
< ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
||||
< ${UNPACKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
||||
install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
|
||||
sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
|
||||
-e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
|
||||
< ${WORKDIR}/pkg-config-esdk.in > ${B}/pkg-config-esdk
|
||||
< ${UNPACKDIR}/pkg-config-esdk.in > ${B}/pkg-config-esdk
|
||||
install -m755 ${B}/pkg-config-esdk ${D}${bindir}/pkg-config-esdk
|
||||
}
|
||||
|
||||
|
||||
@@ -51,11 +51,11 @@ RPROVIDES:${PN} += "pkgconfig(pkg-config)"
|
||||
do_install:append:class-native () {
|
||||
sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
|
||||
-e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
|
||||
< ${WORKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
||||
< ${UNPACKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
||||
install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
|
||||
sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
|
||||
-e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
|
||||
< ${WORKDIR}/pkg-config-esdk.in > ${B}/pkg-config-esdk
|
||||
< ${UNPACKDIR}/pkg-config-esdk.in > ${B}/pkg-config-esdk
|
||||
install -m755 ${B}/pkg-config-esdk ${D}${bindir}/pkg-config-esdk
|
||||
}
|
||||
|
||||
|
||||
@@ -133,8 +133,8 @@ do_install:append:class-native () {
|
||||
chrpath ${D}${bindir}/pseudo -r `chrpath ${D}${bindir}/pseudo | cut -d = -f 2 | sed s/XORIGIN/\\$ORIGIN/`
|
||||
install -d ${D}${sysconfdir}
|
||||
# The fallback files should never be modified
|
||||
install -m 444 ${WORKDIR}/fallback-passwd ${D}${sysconfdir}/passwd
|
||||
install -m 444 ${WORKDIR}/fallback-group ${D}${sysconfdir}/group
|
||||
install -m 444 ${UNPACKDIR}/fallback-passwd ${D}${sysconfdir}/passwd
|
||||
install -m 444 ${UNPACKDIR}/fallback-group ${D}${sysconfdir}/group
|
||||
|
||||
# Two native/nativesdk entries below are the same
|
||||
# If necessary install for the alternative machine arch. This is only
|
||||
|
||||
@@ -157,7 +157,7 @@ do_compile:prepend() {
|
||||
}
|
||||
|
||||
do_install:prepend() {
|
||||
${WORKDIR}/check_build_completeness.py ${T}/log.do_compile
|
||||
${UNPACKDIR}/check_build_completeness.py ${T}/log.do_compile
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
@@ -197,7 +197,7 @@ do_install:append:class-native() {
|
||||
|
||||
do_install:append() {
|
||||
for c in ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do
|
||||
python3 ${WORKDIR}/reformat_sysconfig.py $c
|
||||
python3 ${UNPACKDIR}/reformat_sysconfig.py $c
|
||||
done
|
||||
rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata*.cpython*
|
||||
|
||||
@@ -284,7 +284,7 @@ py_package_preprocess () {
|
||||
# Reformat _sysconfigdata after modifying it so that it remains
|
||||
# reproducible
|
||||
for c in ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do
|
||||
python3 ${WORKDIR}/reformat_sysconfig.py $c
|
||||
python3 ${UNPACKDIR}/reformat_sysconfig.py $c
|
||||
done
|
||||
|
||||
# Recompile _sysconfigdata after modifying it
|
||||
@@ -397,6 +397,7 @@ do_create_manifest() {
|
||||
# e.g. BerkeleyDB is an optional build dependency so it may or may not
|
||||
# be present, we must ensure it is.
|
||||
|
||||
cp ${UNPACKDIR}/create_manifest3.py ${WORKDIR}
|
||||
cd ${WORKDIR}
|
||||
# This needs to be executed by python-native and NOT by HOST's python
|
||||
nativepython3 create_manifest3.py ${PYTHON_MAJMIN}
|
||||
|
||||
@@ -17,7 +17,7 @@ PACKAGECONFIG ??= "fdt alsa kvm pie slirp png \
|
||||
PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}"
|
||||
|
||||
do_install:append() {
|
||||
install -Dm 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
|
||||
install -Dm 0755 ${UNPACKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
|
||||
|
||||
# The following is also installed by qemu-native
|
||||
rm -f ${D}${datadir}/qemu/trace-events-all
|
||||
|
||||
@@ -168,11 +168,11 @@ do_install () {
|
||||
# If we built the guest agent, also install startup/udev rules
|
||||
if [ -e "${D}${bindir}/qemu-ga" ]; then
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/qemu-guest-agent.init ${D}${sysconfdir}/init.d/qemu-guest-agent
|
||||
install -m 0755 ${UNPACKDIR}/qemu-guest-agent.init ${D}${sysconfdir}/init.d/qemu-guest-agent
|
||||
sed -i 's:@bindir@:${bindir}:' ${D}${sysconfdir}/init.d/qemu-guest-agent
|
||||
|
||||
install -d ${D}${sysconfdir}/udev/rules.d/
|
||||
install -m 0644 ${WORKDIR}/qemu-guest-agent.udev ${D}${sysconfdir}/udev/rules.d/60-qemu-guest-agent.rules
|
||||
install -m 0644 ${UNPACKDIR}/qemu-guest-agent.udev ${D}${sysconfdir}/udev/rules.d/60-qemu-guest-agent.rules
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${S}/contrib/systemd/qemu-guest-agent.service ${D}${systemd_unitdir}/system
|
||||
|
||||
@@ -22,7 +22,7 @@ do_configure:prepend() {
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -D ${WORKDIR}/git/repo ${D}${bindir}/repo
|
||||
install -D ${S}/repo ${D}${bindir}/repo
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "python3 git"
|
||||
|
||||
@@ -61,7 +61,7 @@ do_configure:append () {
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/rsyncd.conf ${D}${sysconfdir}
|
||||
install -m 0644 ${UNPACKDIR}/rsyncd.conf ${D}${sysconfdir}
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -54,9 +54,9 @@ CFLAGS:append:loongarch64 = " ${LCL_STOP_SERVICES}"
|
||||
do_install() {
|
||||
oe_runmake install INSTALLROOT=${D}
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent
|
||||
install -m 0755 ${UNPACKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/tcf-agent.service ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${UNPACKDIR}/tcf-agent.service ${D}${systemd_system_unitdir}
|
||||
sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/tcf-agent.service
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user