From: Jan Altensen Date: Thu, 24 Jun 2021 17:50:02 +0000 (+0200) Subject: g12: Fix dtbo image creation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66affe08c72b1dee6caee86521a69d52db5b9d4a;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_amlogic_g12-common.git g12: Fix dtbo image creation Change-Id: I30ea3685d70632a55dce49120fd20f14a9b61e87 --- diff --git a/build/tasks/2ndbootloader.mk b/build/tasks/2ndbootloader.mk index e67ea68..7600d76 100644 --- a/build/tasks/2ndbootloader.mk +++ b/build/tasks/2ndbootloader.mk @@ -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