summaryrefslogtreecommitdiff
path: root/build/tasks/dtimage.mk
blob: 86cc290e185d720211687817bbd2a66e54fd4f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ifneq ($(filter hikey%, $(TARGET_DEVICE)),)
ifneq ($(TARGET_NO_DTIMAGE), true)
# make sure the vendor package is present

include device/linaro/hikey/vendor-package-ver.mk
ifneq (,$(wildcard $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/version.mk))

MKDTIMG := $(LINARO_VENDOR_PATH)/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/bootloader/mkdtimg
DTB := $(PRODUCT_OUT)/hi3660-hikey960.dtb

$(PRODUCT_OUT)/dt.img: $(DTB)
	$(MKDTIMG) -c -d $(DTB) -o $@

droidcore: $(PRODUCT_OUT)/dt.img

# Images will be packed into target_files zip, and hikey-img.zip.
INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/dt.img
BOARD_PACK_RADIOIMAGES += dt.img

endif
endif
endif