Skip to content

Commit 11f28b2

Browse files
committed
feat(Makefile): add flash_glymur/ target
Add a new target that downloads the Glymur firmware and extracts it in a flash_glymur/ directory. This allows for autocompletion thanks to Makefile targets and allows to do the following and get what one would expect: $ make flash_glymur/bootfw1.bin $ # or simply: $ make flash_glymur/ Signed-off-by: Agathe Porte <agathe.porte@oss.qualcomm.com>
1 parent 6f3e2a0 commit 11f28b2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,27 @@ test: disk-ufs.img
6666
# rootfs/ is a build artifact, so should not be scanned for tests
6767
py.test-3 --ignore=rootfs
6868

69+
# Glymur
70+
71+
Glymur_bootbinaries.zip:
72+
wcurl https://softwarecenter.qualcomm.com/nexus/generic/software/chip/qualcomm_linux-spf-0-0/qualcomm-linux-spf-0-0_test_device_public/r0.0_00009.0/glymur-le-0-0/common/build/bin/Glymur_bootbinaries.zip
73+
74+
GLYMUR_BOOTBINARIES := \
75+
flash_glymur/bootfw1.bin \
76+
flash_glymur/bootfw2.bin \
77+
flash_glymur/xbl_s.melf \
78+
flash_glymur/xbl_s_devprg_ns.melf \
79+
flash_glymur/xbl_sc.elf
80+
81+
$(GLYMUR_BOOTBINARIES): flash_glymur/
82+
83+
flash_glymur/: Glymur_bootbinaries.zip
84+
unzip -j -o -d flash_glymur/ $<
85+
6986
.PHONY: clean
7087
clean:
7188
rm -f disk-ufs.img1 disk-ufs.img2 disk-ufs.img
7289
rm -f disk-sdcard.img1 disk-sdcard.img2 disk-sdcard.img
7390
rm -f rootfs.tar
7491
rm -f dtbs.tar.gz
92+
rm -rf flash_glymur

0 commit comments

Comments
 (0)