meta: update all recipes for the UNPACKDIR transition

* No more 'S = "${WORKDIR}"', which is not permitted
* All ${WORKDIR} references for local files updated to ${UNPACKDIR}
* Custom do_unpack for the recipes that are in the public_sources
  archive in the BSP adjusted for the new unpacking approach
* Some SRC_URIs updated with 'destsuffix=' parameters where needed

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2024-05-28 06:49:41 -07:00
parent 929d03d4a4
commit 614c2510a9
42 changed files with 111 additions and 70 deletions

View File

@@ -11,20 +11,18 @@ SRC_URI = "\
COMPATIBLE_MACHINE = "(tegra)"
S = "${WORKDIR}"
do_install() {
install -m 0755 ${WORKDIR}/init-flash.sh ${D}/init
install -m 0755 ${WORKDIR}/init-extra.sh ${D}/init-extra
install -m 0755 ${UNPACKDIR}/init-flash.sh ${D}/init
install -m 0755 ${UNPACKDIR}/init-extra.sh ${D}/init-extra
install -m 0755 -d ${D}/init-extra.d
install -m 0555 -d ${D}/proc ${D}/sys
install -m 0755 -d ${D}/dev ${D}/mnt ${D}/run ${D}/usr
install -m 1777 -d ${D}/tmp
mknod -m 622 ${D}/dev/console c 5 1
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/program-boot-device.sh ${D}${bindir}/program-boot-device
install -m 0755 ${UNPACKDIR}/program-boot-device.sh ${D}${bindir}/program-boot-device
install -d ${D}${sysconfdir}/initrd-flash
install -m 0644 ${WORKDIR}/initrd-flash.scheme.in ${D}${sysconfdir}/initrd-flash/
install -m 0644 ${UNPACKDIR}/initrd-flash.scheme.in ${D}${sysconfdir}/initrd-flash/
}
FILES:${PN} = "/"

View File

@@ -6,7 +6,8 @@ SRC_URI = "file://reboot-recovery.c"
COMPATIBLE_MACHINE = "(tegra)"
S = "${WORKDIR}"
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
B = "${WORKDIR}/build"
do_compile() {

View File

@@ -11,16 +11,14 @@ COMPATIBLE_MACHINE = "(tegra)"
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}"
do_install() {
install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init
install -m 0755 ${UNPACKDIR}/init-boot.sh ${D}/init
install -m 0555 -d ${D}/proc ${D}/sys
install -m 0755 -d ${D}/dev ${D}/mnt ${D}/run ${D}/usr
install -m 1777 -d ${D}/tmp
mknod -m 622 ${D}/dev/console c 5 1
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/platform-preboot.sh ${D}${sysconfdir}/platform-preboot
install -m 0644 ${UNPACKDIR}/platform-preboot.sh ${D}${sysconfdir}/platform-preboot
sed -i -e "s#@@TNSPEC_BOOTDEV@@#${TNSPEC_BOOTDEV}#g" ${D}${sysconfdir}/platform-preboot
}