diff --git a/meta-arm-systemready/classes/arm-systemready-acs.bbclass b/meta-arm-systemready/classes/arm-systemready-acs.bbclass index 9dc3635d..d817b693 100644 --- a/meta-arm-systemready/classes/arm-systemready-acs.bbclass +++ b/meta-arm-systemready/classes/arm-systemready-acs.bbclass @@ -29,7 +29,7 @@ IMAGE_POSTPROCESS_COMMAND += "write_image_test_data; " python do_deploy() { deploydir = d.getVar('DEPLOYDIR') suffix = d.getVar('IMAGE_DEPLOY_SUFFIX') - imgfile = os.path.join(d.getVar('WORKDIR'), d.getVar('IMAGE_FILENAME')) + imgfile = os.path.join(d.getVar('UNPACKDIR'), d.getVar('IMAGE_FILENAME')) deployfile = os.path.join(deploydir, d.getVar('IMAGE_NAME') + suffix) linkfile = os.path.join(deploydir, d.getVar('IMAGE_LINK_NAME') + suffix) @@ -47,14 +47,14 @@ python do_deploy() { # Copy the report.txt to DEPLOYDIR # The machine-specific implementation can optionally put the report file in - # ${WORKDIR}/report.txt. If there is no such file present, use the template. - workdir = d.getVar('WORKDIR') - report_file = os.path.join(workdir, "report.txt") + # ${UNPACKDIR}/report.txt. If there is no such file present, use the template. + unpackdir = d.getVar('UNPACKDIR') + report_file = os.path.join(unpackdir, "report.txt") report_file_dest = os.path.join(deploydir, "report.txt") if os.path.exists(report_file): report_file_to_copy = report_file else: - report_file_to_copy = os.path.join(workdir, "systemready-ir-template", + report_file_to_copy = os.path.join(unpackdir, "systemready-ir-template", "report.txt") shutil.copyfile(report_file_to_copy, report_file_dest) diff --git a/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bb b/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bb index 41ac2f77..7a709af5 100644 --- a/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bb +++ b/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bb @@ -58,4 +58,6 @@ SRC_URI[acs-img.sha256sum] = "ea52f84dab44bde97de3e2d2224d883acaae35724dd8e2bdfb # Revision pointing to v2023.04 tag SRCREV_sr-ir-template = "c714db178ddf72e5ae5017f15421095297d5bf0e" +S = "${WORKDIR}/sources-unpack" + inherit arm-systemready-acs diff --git a/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros.inc b/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros.inc index d80cf237..24dfc50a 100644 --- a/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros.inc +++ b/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros.inc @@ -22,6 +22,8 @@ ARM_SYSTEMREADY_LINUX_DISTRO_ISO_IMAGE = \ # Size of installation disk in MB ARM_SYSTEMREADY_LINUX_DISTRO_INSTALL_SIZE ?= "4096" +S = "${WORKDIR}/sources-unpack" + do_image() { dd if=/dev/zero of=${WORKDIR}/${IMAGE_LINK_NAME}.wic \ bs=1M count=${ARM_SYSTEMREADY_LINUX_DISTRO_INSTALL_SIZE} status=none @@ -29,7 +31,7 @@ do_image() { do_deploy() { # Deploy the iso and installation target disk image to the deploy folder - install -m 644 ${WORKDIR}/${ISO_IMAGE_NAME}.iso ${DEPLOYDIR} + install -m 644 ${UNPACKDIR}/${ISO_IMAGE_NAME}.iso ${DEPLOYDIR} install -m 644 ${WORKDIR}/${IMAGE_LINK_NAME}.wic ${DEPLOYDIR} }