blob: 40cb2be14b76746f9594a5f20e223f726d7b8052 [file] [log] [blame]
ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
$(PRODUCT_OUT)/boot_fat.uefi.img: $(PRODUCT_OUT)/kernel $(PRODUCT_OUT)/hi6220-hikey.dtb $(PRODUCT_OUT)/ramdisk.img
# $@ is referring to $(PRODUCT_OUT)/boot_fat.uefi.img
dd if=/dev/zero of=$@ bs=512 count=98304
mkfs.fat -n "boot" $@
mcopy -i $@ $(PRODUCT_OUT)/kernel ::Image
mcopy -i $@ $(PRODUCT_OUT)/hi6220-hikey.dtb ::hi6220-hikey.dtb
mcopy -s -i $@ device/linaro/hikey/bootloader/* ::
mcopy -i $@ $(PRODUCT_OUT)/ramdisk.img ::ramdisk.img
droidcore: $(PRODUCT_OUT)/boot_fat.uefi.img
endif