Dmitry Shmidt | 926e2c5 | 2016-01-12 16:18:56 -0800 | [diff] [blame] | 1 | ifneq ($(filter hikey%, $(TARGET_DEVICE)),) |
| 2 | |
Dmitry Shmidt | e8886dd | 2016-05-24 15:18:23 -0700 | [diff] [blame] | 3 | ifeq ($(TARGET_BOOTIMAGE_USE_FAT), true) |
Yongqin Liu | 419d098 | 2016-05-30 15:16:26 +0800 | [diff] [blame] | 4 | $(PRODUCT_OUT)/boot_fat.uefi.img: $(INSTALLED_KERNEL_TARGET) $(INSTALLED_RAMDISK_TARGET) $(PRODUCT_OUT)/hi6220-hikey.dtb |
Dmitry Shmidt | 361b9b6 | 2015-12-03 11:27:13 -0800 | [diff] [blame] | 5 | # $@ is referring to $(PRODUCT_OUT)/boot_fat.uefi.img |
| 6 | dd if=/dev/zero of=$@ bs=512 count=98304 |
Vishal Bhoj | ca1fbcd | 2015-12-16 00:25:24 +0530 | [diff] [blame] | 7 | mkfs.fat -n "boot" $@ |
Dmitry Shmidt | 361b9b6 | 2015-12-03 11:27:13 -0800 | [diff] [blame] | 8 | 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 | |
| 13 | droidcore: $(PRODUCT_OUT)/boot_fat.uefi.img |
Dmitry Shmidt | e8886dd | 2016-05-24 15:18:23 -0700 | [diff] [blame] | 14 | endif |
Dmitry Shmidt | 926e2c5 | 2016-01-12 16:18:56 -0800 | [diff] [blame] | 15 | |
| 16 | endif |