blob: e7ddaf4f9b462818620fc298301bfe4e82364121 [file] [log] [blame]
ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
ifeq ($(TARGET_BOOTIMAGE_USE_FAT), true)
$(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
endif