blob: 8a5b5a58c701ee4941ed1cc4dffcb1fec253cb6e [file] [log] [blame]
ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
ifeq ($(TARGET_BOOTIMAGE_USE_FAT), true)
$(PRODUCT_OUT)/boot_fat.uefi.img: $(INSTALLED_KERNEL_TARGET) $(INSTALLED_RAMDISK_TARGET) $(PRODUCT_OUT)/hi6220-hikey.dtb
# $@ 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