Skip to content

Commit 58decc0

Browse files
committed
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 <agathe.porte@oss.qualcomm.com>
1 parent 2d937bf commit 58decc0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ DISK_SDCARD_IMAGES := disk-sdcard.img \
6969
$(DISK_SDCARD_IMAGES): debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar
7070
$(DEBOS_CMD) -t imagetype:sdcard $<
7171

72+
.PHONY: flash
73+
flash: debos-recipes/qualcomm-linux-debian-flash.yaml dtbs.tar.gz disk-sdcard.img1 disk-ufs.img1
74+
$(DEBOS_CMD) $<
75+
7276
.PHONY: test
7377
test: disk-ufs.img
7478
# rootfs/ is a build artifact, so should not be scanned for tests

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ To build flashable assets for all supported boards, follow these steps:
102102

103103
1. build flashable assets from downloaded boot binaries, the DTBs, and pointing at the UFS/SD card disk images
104104
```bash
105-
debos debos-recipes/qualcomm-linux-debian-flash.yaml
105+
make flash
106106
107107
# (optional) if you've built U-Boot for the RB1, run this instead:
108-
#debos -t u_boot_rb1:u-boot/rb1-boot.img debos-recipes/qualcomm-linux-debian-flash.yaml
108+
#EXTRA_DEBOS_OPTS="-t u_boot_rb1:u-boot/rb1-boot.img" make flash
109109
110110
# (optional) build only a subset of boards:
111-
#debos -t target_boards:qcs615-ride,qcs6490-rb3gen2-vision-kit debos-recipes/qualcomm-linux-debian-flash.yaml
111+
#EXTRA_DEBOS_OPTS="-t target_boards:qcs615-ride,qcs6490-rb3gen2-vision-kit" make flash
112112
```
113113

114114
1. enter Emergency Download Mode (see section below) and flash the resulting images with QDL

0 commit comments

Comments
 (0)