blob: e378b75ee07644828606189d4c84aa8b4bc8c379 [file] [log] [blame]
John Stultz09c0fb82017-08-10 17:30:17 -07001BL1=bl1.bin
2NS_BL1U=BL33_AP_UEFI.fd
3PTABLE_LST:=aosp-32g aosp-32g-spare linux-32g
4
5.PHONY: all
6all: l-loader.bin prm_ptable.img
7
8l-loader.bin: $(BL1) $(NS_BL1U)
9 python gen_loader_hikey960.py -o $@ --img_bl1=$(BL1) --img_ns_bl1u=$(NS_BL1U)
10
11prm_ptable.img:
12 for ptable in $(PTABLE_LST); do \
13 PTABLE=$${ptable} SECTOR_SIZE=4096 SGDISK=./sgdisk bash -x generate_ptable.sh;\
14 cp prm_ptable.img ptable-$${ptable}.img;\
15 done
16
17.PHONY: clean
18clean:
19 rm -f *.img l-loader.bin