Change-Id: I60092adb4e25d699115c0b6f5b3c1434300957e3
BOARD_KERNEL_IMAGE_NAME := Image.gz
BOARD_KERNEL_OFFSET := 0x00008000
BOARD_KERNEL_PAGESIZE := 2048
+BOARD_PREBUILT_DTBOIMAGE ?= $(TARGET_OUT_INTERMEDIATES)/DTBO_OBJ/arch/$(KERNEL_ARCH)/boot/dtbo.img
BOARD_RAMDISK_OFFSET := 0xfef10000
BOARD_SECOND_OFFSET := 0xfee10000
BOARD_TAGS_OFFSET := 0xfdf10100
endif
$(BOARD_PREBUILT_DTBOIMAGE): $(INSTALLED_KERNEL_TARGET) $(MKDTBOIMG)
+ifeq ($(words $(TARGET_DTB_NAME)),1)
$(MKDTBOIMG) create $@ $(DTBDIR)/$(TARGET_DTBO_NAME).dtb
+else
+ $(MKDTBOIMG) create $@ $(foreach dtbo, $(TARGET_DTB_NAME), \
+ $(DTBDIR)/$(strip $(dtbo)).dtb \
+ )
+endif
endif