blob: 8a5b5a58c701ee4941ed1cc4dffcb1fec253cb6e [file] [log] [blame]
Dmitry Shmidt926e2c52016-01-12 16:18:56 -08001ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
2
Dmitry Shmidtc4235912016-05-24 15:18:23 -07003ifeq ($(TARGET_BOOTIMAGE_USE_FAT), true)
Yongqin Liu1879e032016-05-30 15:16:26 +08004$(PRODUCT_OUT)/boot_fat.uefi.img: $(INSTALLED_KERNEL_TARGET) $(INSTALLED_RAMDISK_TARGET) $(PRODUCT_OUT)/hi6220-hikey.dtb
Dmitry Shmidt361b9b62015-12-03 11:27:13 -08005# $@ is referring to $(PRODUCT_OUT)/boot_fat.uefi.img
6 dd if=/dev/zero of=$@ bs=512 count=98304
Vishal Bhojca1fbcd2015-12-16 00:25:24 +05307 mkfs.fat -n "boot" $@
Dmitry Shmidt361b9b62015-12-03 11:27:13 -08008 mcopy -i $@ $(PRODUCT_OUT)/kernel ::Image
9 mcopy -i $@ $(PRODUCT_OUT)/hi6220-hikey.dtb ::hi6220-hikey.dtb
10 mcopy -s -i $@ device/linaro/hikey/bootloader/* ::
11 mcopy -i $@ $(PRODUCT_OUT)/ramdisk.img ::ramdisk.img
12
13droidcore: $(PRODUCT_OUT)/boot_fat.uefi.img
Dmitry Shmidtc4235912016-05-24 15:18:23 -070014endif
Dmitry Shmidt926e2c52016-01-12 16:18:56 -080015
16endif