Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame^] | 1 | REALTOP=$(realpath $(TOP)) |
| 2 | boot_fatimage: bootimage |
| 3 | dd if=/dev/zero of=$(PRODUCT_OUT)/boot_fat.uefi.img bs=512 count=98304 |
| 4 | mkfs.fat -n "BOOT IMG" $(PRODUCT_OUT)/boot_fat.uefi.img |
| 5 | mkdir -p $(PRODUCT_OUT)/boot_tmp && sudo mount -o umask=000,loop,rw,sync $(PRODUCT_OUT)/boot_fat.uefi.img $(PRODUCT_OUT)/boot_tmp |
| 6 | cp $(PRODUCT_OUT)/kernel $(PRODUCT_OUT)/boot_tmp/Image |
| 7 | cp $(PRODUCT_OUT)/hi6220-hikey.dtb $(PRODUCT_OUT)/boot_tmp/hi6220-hikey.dtb |
| 8 | cp -r device/linaro/hikey/bootloader/* $(PRODUCT_OUT)/boot_tmp/ |
| 9 | cp $(PRODUCT_OUT)/ramdisk.img $(PRODUCT_OUT)/boot_tmp/ |
| 10 | mkdir -p $(PRODUCT_OUT)/boot_tmp/grub/ |
| 11 | sync |
| 12 | sudo umount -f $(PRODUCT_OUT)/boot_fat.uefi.img |
| 13 | |
| 14 | |
| 15 | droidcore: boot_fatimage |