blob: 86cc290e185d720211687817bbd2a66e54fd4f9d [file] [log] [blame]
Dmitry Shmidt5d080802017-04-11 14:20:03 -07001ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
2ifneq ($(TARGET_NO_DTIMAGE), true)
John Stultzec36f2d2022-02-02 04:37:53 +00003# make sure the vendor package is present
Dmitry Shmidt5d080802017-04-11 14:20:03 -07004
Yongqin Liu26df8472022-02-25 14:47:33 +08005include device/linaro/hikey/vendor-package-ver.mk
John Stultzec36f2d2022-02-02 04:37:53 +00006ifneq (,$(wildcard $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk))
7
8MKDTIMG := $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/bootloader/mkdtimg
Dmitry Shmidt5d080802017-04-11 14:20:03 -07009DTB := $(PRODUCT_OUT)/hi3660-hikey960.dtb
10
11$(PRODUCT_OUT)/dt.img: $(DTB)
12 $(MKDTIMG) -c -d $(DTB) -o $@
13
14droidcore: $(PRODUCT_OUT)/dt.img
Tao Bao69c2d872017-06-06 13:03:59 -070015
16# Images will be packed into target_files zip, and hikey-img.zip.
17INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/dt.img
18BOARD_PACK_RADIOIMAGES += dt.img
19
Dmitry Shmidt5d080802017-04-11 14:20:03 -070020endif
21endif
John Stultzec36f2d2022-02-02 04:37:53 +000022endif