1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-01-12 01:20:20 +00:00

recipes: Update to UNPACKDIR for files going into WORKDIR

For recipes that have file:// in SRC_URI, the files are placed into
WORKDIR.  Moving forward [1], that directory will be UNPACKDIR and
eventually move to somewhere other than WORKDIR.  So update all
references to WORKDIR that are looking for these file to use UNPACKDIR
instead.

[1] https://git.openembedded.org/openembedded-core/commit/?id=e022d62ba917790af2121da57646271ef17c03fa

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
Ryan Eatmon
2024-05-21 11:33:26 -05:00
parent 67b556502b
commit afcdfa2e63
8 changed files with 23 additions and 23 deletions

View File

@@ -8,6 +8,6 @@ SRC_URI:append:ti-soc = " \
PR:append:ti-soc = ".3"
do_install:append:ti-soc() {
install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/firmware.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${UNPACKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${UNPACKDIR}/firmware.rules ${D}${sysconfdir}/udev/rules.d/
}

View File

@@ -9,7 +9,7 @@ do_configure() {
# Always copy the defconfig file to .config to keep consistency
# between the case where there is a real config and the in kernel
# tree config
cp ${WORKDIR}/defconfig ${B}/.config
cp ${UNPACKDIR}/defconfig ${B}/.config
scm_version=$(printf '%s%s' -g $(git -C ${S} rev-parse --verify HEAD 2>/dev/null | cut -c1-12))

View File

@@ -18,7 +18,7 @@ SRC_URI += "file://tiipclad-daemon.sh \
file://0001-MmRpc-Stop-looking-for-rpmsg_rpc.h-in-the-kernel.patch \
"
CFLAGS += "-I${WORKDIR}"
CFLAGS += "-I${UNPACKDIR}"
DAEMON = "UNKNOWN"
DAEMON:dra7xx = "lad_dra7xx"
@@ -45,18 +45,18 @@ do_install:append() {
# Modify the startup scripts to point to the right
# lad daemon executable.
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.service
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${UNPACKDIR}/tiipclad-daemon.sh
sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${UNPACKDIR}/tiipclad-daemon.service
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
install -m 0644 ${UNPACKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
install -d ${D}${sysconfdir}/init.d/
install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
install -c -m 755 ${UNPACKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
}
do_install:append:dra7xx() {
install -d ${D}${sysconfdir}/modprobe.d/
install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/
install -c -m 644 ${UNPACKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/
}
PACKAGES =+ "${PN}-test"

View File

@@ -14,13 +14,13 @@ SRC_URI = "file://cape.service \
do_install() {
install -d ${D}${base_libdir}/systemd/system/
install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system
install -m 0644 ${UNPACKDIR}/cape.service ${D}${base_libdir}/systemd/system
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir}
install -m 0755 ${UNPACKDIR}/cape*.sh ${D}${bindir}
}
FILES:${PN} += "${base_libdir}/systemd/system"

View File

@@ -22,19 +22,19 @@ SRC_URI = "file://storage-gadget-init.service \
do_install() {
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
install -m 0644 ${UNPACKDIR}/*.service ${D}${base_libdir}/systemd/system
for i in ${WORKDIR}/storage-gadget-init.service ; do
for i in ${UNPACKDIR}/storage-gadget-init.service ; do
install -m 0644 $i ${D}${base_libdir}/systemd/system
ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
done
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}
install -m 0644 ${UNPACKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${UNPACKDIR}/*.conf ${D}${sysconfdir}
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
install -m 0755 ${UNPACKDIR}/*.sh ${D}${bindir}
}
PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd"

View File

@@ -2,7 +2,7 @@ DESCRIPTION = "TI PRU Code Generation Tools"
HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD"
LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
require recipes-ti/includes/ti-paths.inc
@@ -10,7 +10,7 @@ require recipes-ti/includes/ti-unpack.inc
BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin"
BINFILE_NAME = "cgt-pru-x86"
TI_BIN_UNPK_ARGS = "--prefix ${S}"
TI_BIN_UNPK_ARGS = "--prefix ${UNPACKDIR}"
TI_BIN_UNPK_CMDS = ""
BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh"
@@ -26,12 +26,12 @@ SRC_URI[cgt-pru-arm.sha256sum] = "8390cb77b46b728ce2940595b81406f76d86dfed58c212
do_install() {
install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}
cp -r ${S}/ti-cgt-pru_${PV}/. \
cp -r ${UNPACKDIR}/ti-cgt-pru_${PV}/. \
${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/
}
do_install:class-target() {
${WORKDIR}/${BINFILE} --prefix ${D}
${UNPACKDIR}/${BINFILE} --prefix ${D}
}
FILES:${PN} += "${datadir}/ti/*"

View File

@@ -92,7 +92,7 @@ do_install() {
}
do_install:class-target() {
${WORKDIR}/${BINFILE} --prefix ${D}
${UNPACKDIR}/${BINFILE} --prefix ${D}
}
FILES:${PN} += "${datadir}/ti/*"

View File

@@ -5,7 +5,7 @@
# TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file.
# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
# passed while unpacking the bin file. The keyword
# workdir expands to WORKDIR and commands are appendded
# workdir expands to UNPACKDIR and commands are appendded
# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
# the output in some internal directory
@@ -30,7 +30,7 @@ python ti_bin_do_unpack() {
# Change to the working directory
save_cwd = os.getcwd()
workdir = localdata.getVar('WORKDIR')
workdir = localdata.getVar('UNPACKDIR')
workdir = bb.data.expand(workdir, localdata)
os.chdir(workdir)