1 BL1=bl1.bin 2 NS_BL1U=BL33_AP_UEFI.fd 3 PTABLE_LST:=aosp-32g aosp-32g-spare linux-32g 4 5 .PHONY: all 6 all: l-loader.bin prm_ptable.img 7 8 l-loader.bin: $(BL1) $(NS_BL1U) 9 python gen_loader_hikey960.py -o $@ --img_bl1=$(BL1) --img_ns_bl1u=$(NS_BL1U) 10 11 prm_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 18 clean: 19 rm -f *.img l-loader.bin 20