g12: Fix dtbo image creation
authorJan Altensen <info@stricted.net>
Thu, 24 Jun 2021 17:50:02 +0000 (19:50 +0200)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 27 Jul 2021 21:18:15 +0000 (17:18 -0400)
Change-Id: I30ea3685d70632a55dce49120fd20f14a9b61e87

build/tasks/2ndbootloader.mk

index e67ea684a90186eb2da07cbeb8386ecb1474deaf..7600d76b81c510d8890efa50eb43c7d19d75b6dc 100644 (file)
@@ -23,7 +23,7 @@ DTBTMP := $(PRODUCT_OUT)/tmp_dt
 DTBDIR := $(PRODUCT_OUT)/obj/KERNEL_OBJ/arch/arm64/boot/dts/amlogic
 DTCDIR := $(PRODUCT_OUT)/obj/KERNEL_OBJ/scripts/dtc/
 
-TARGET_DTBO_NAME ?= amlogicandroid_p_overlay_dt
+TARGET_DTBO_NAME ?= android_p_overlay_dt
 
 define aml-compress-dtb
        if [ -n "$(shell find $(1) -size +200k)" ]; then \
@@ -50,12 +50,11 @@ else
 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), \
+       $(MKDTBOIMG) create $@ $(foreach dtbo, $(TARGET_DTBO_NAME), \
                $(DTBDIR)/$(strip $(dtbo)).dtb \
        )
-endif
+
+.PHONY: dtbotest
+dtbotest: $(BOARD_PREBUILT_DTBOIMAGE)
 
 endif