Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 1 | ifneq ($(filter hikey%, $(TARGET_DEVICE)),) |
| 2 | ifneq ($(TARGET_NO_DTIMAGE), true) |
John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 3 | # make sure the vendor package is present |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 4 | |
John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 5 | include device/linaro/dragonboard/vendor-package-ver.mk |
| 6 | ifneq (,$(wildcard $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk)) |
| 7 | |
| 8 | MKDTIMG := $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/bootloader/mkdtimg |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 9 | DTB := $(PRODUCT_OUT)/hi3660-hikey960.dtb |
| 10 | |
| 11 | $(PRODUCT_OUT)/dt.img: $(DTB) |
| 12 | $(MKDTIMG) -c -d $(DTB) -o $@ |
| 13 | |
| 14 | droidcore: $(PRODUCT_OUT)/dt.img |
Tao Bao | 69c2d87 | 2017-06-06 13:03:59 -0700 | [diff] [blame] | 15 | |
| 16 | # Images will be packed into target_files zip, and hikey-img.zip. |
| 17 | INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/dt.img |
| 18 | BOARD_PACK_RADIOIMAGES += dt.img |
| 19 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 20 | endif |
| 21 | endif |
John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 22 | endif |