blob: f102d6c4a58ac521de12cb8e26e09a010b800a3c [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
John Stultzec36f2d2022-02-02 04:37:53 +00005include device/linaro/dragonboard/vendor-package-ver.mk
6ifneq (,$(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