From f62904a6fd1353e38dd4bd70782ffa9227ea5266 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 26 Mar 2026 09:35:01 +0100 Subject: [PATCH 1/3] feat(Makefile): track img1 and img2 targets The *.img1 and *.img2 intermediate files are produced by the image recipe but currently not properly tracked in the Makefile. Add proper targets so that other recipes like the flash recipe can depend on img1 and have them generated if missing or accidentally removed. Signed-off-by: Agathe Porte --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6964a96c..7d60ad7d 100644 --- a/Makefile +++ b/Makefile @@ -55,10 +55,18 @@ all: disk-ufs.img disk-sdcard.img rootfs.tar: debos-recipes/qualcomm-linux-debian-rootfs.yaml $(DEBOS_CMD) $< -disk-ufs.img: debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar +DISK_UFS_IMAGES := disk-ufs.img \ + disk-ufs.img1 \ + disk-ufs.img2 + +$(DISK_UFS_IMAGES): debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar $(DEBOS_CMD) $< -disk-sdcard.img: debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar +DISK_SDCARD_IMAGES := disk-sdcard.img \ + disk-sdcard.img1 \ + disk-sdcard.img2 + +$(DISK_SDCARD_IMAGES): debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar $(DEBOS_CMD) -t imagetype:sdcard $< .PHONY: test @@ -68,7 +76,7 @@ test: disk-ufs.img .PHONY: clean clean: - rm -f disk-ufs.img1 disk-ufs.img2 disk-ufs.img - rm -f disk-sdcard.img1 disk-sdcard.img2 disk-sdcard.img + rm -f $(DISK_UFS_IMAGES) + rm -f $(DISK_SDCARD_IMAGES) rm -f rootfs.tar rm -f dtbs.tar.gz From 7c63f60210e3bd49b823a56bca2632768dbe6c4f Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 26 Mar 2026 09:45:27 +0100 Subject: [PATCH 2/3] fix(Makefile): track dtbs.tar.gz Track which recipe produces the dtbs.tar.gz artefact for consumption by other targets. Signed-off-by: Agathe Porte --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d60ad7d..a72d6f60 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ export http_proxy .PHONY: all all: disk-ufs.img disk-sdcard.img -rootfs.tar: debos-recipes/qualcomm-linux-debian-rootfs.yaml +rootfs.tar dtbs.tar.gz: debos-recipes/qualcomm-linux-debian-rootfs.yaml $(DEBOS_CMD) $< DISK_UFS_IMAGES := disk-ufs.img \ From 238297b1a96b7781bafa2051bd369db1255dc7e0 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 26 Mar 2026 09:47:47 +0100 Subject: [PATCH 3/3] feat(Makefile): introduce flash target Introduce a new target that depends on previous artefacts to generate call the flash recipe with proper arguments and docker support. Signed-off-by: Agathe Porte --- Makefile | 4 ++++ README.md | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a72d6f60..b974ec5b 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,10 @@ DISK_SDCARD_IMAGES := disk-sdcard.img \ $(DISK_SDCARD_IMAGES): debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar $(DEBOS_CMD) -t imagetype:sdcard $< +.PHONY: flash +flash: debos-recipes/qualcomm-linux-debian-flash.yaml dtbs.tar.gz + $(DEBOS_CMD) $< + .PHONY: test test: disk-ufs.img # rootfs/ is a build artifact, so should not be scanned for tests diff --git a/README.md b/README.md index 9a7b6d8a..93547ad8 100644 --- a/README.md +++ b/README.md @@ -102,13 +102,13 @@ To build flashable assets for all supported boards, follow these steps: 1. build flashable assets from downloaded boot binaries, the DTBs, and pointing at the UFS/SD card disk images ```bash - debos debos-recipes/qualcomm-linux-debian-flash.yaml + make flash # (optional) if you've built U-Boot for the RB1, run this instead: - #debos -t u_boot_rb1:u-boot/rb1-boot.img debos-recipes/qualcomm-linux-debian-flash.yaml + #EXTRA_DEBOS_OPTS="-t u_boot_rb1:u-boot/rb1-boot.img" make flash # (optional) build only a subset of boards: - #debos -t target_boards:qcs615-ride,qcs6490-rb3gen2-vision-kit debos-recipes/qualcomm-linux-debian-flash.yaml + #EXTRA_DEBOS_OPTS="-t target_boards:qcs615-ride,qcs6490-rb3gen2-vision-kit" make flash ``` 1. enter Emergency Download Mode (see section below) and flash the resulting images with QDL