sunxi-6.11: Fix build dtb package

Armbian uses subdirectories <overlay> for arm
and <allwinner/overlay> for arm64.
Delete the vendor's directory if the target architecture
is an arm.
This commit is contained in:
The-going 2024-11-19 20:52:09 +03:00 committed by Igor
parent 17a33c1480
commit 45162c2e67
1 changed files with 10 additions and 7 deletions

View File

@ -1,13 +1,13 @@
From 0184e44b9caf2fa96cc058f0bb34fd5ca4ca4498 Mon Sep 17 00:00:00 2001 From 9834ff87ee93495982c223bea78206bda5955e89 Mon Sep 17 00:00:00 2001
From: The-going <48602507+The-going@users.noreply.github.com> From: The-going <48602507+The-going@users.noreply.github.com>
Date: Tue, 1 Feb 2022 21:04:08 +0300 Date: Tue, 1 Feb 2022 21:04:08 +0300
Subject: scripts: add overlay compilation support Subject: scripts: add overlay compilation support
--- ---
.gitignore | 1 + .gitignore | 1 +
scripts/Makefile.dtbinst | 9 ++++++++- scripts/Makefile.dtbinst | 12 +++++++++++-
scripts/Makefile.lib | 12 +++++++++++- scripts/Makefile.lib | 12 +++++++++++-
3 files changed, 20 insertions(+), 2 deletions(-) 3 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore diff --git a/.gitignore b/.gitignore
index 58fdbb35e2f1..0d683e66d33b 100644 index 58fdbb35e2f1..0d683e66d33b 100644
@ -22,7 +22,7 @@ index 58fdbb35e2f1..0d683e66d33b 100644
*.so.dbg *.so.dbg
*.su *.su
diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst
index 9d920419a62c..b66af344040d 100644 index 9d920419a62c..d0703c2148cf 100644
--- a/scripts/Makefile.dtbinst --- a/scripts/Makefile.dtbinst
+++ b/scripts/Makefile.dtbinst +++ b/scripts/Makefile.dtbinst
@@ -23,6 +23,11 @@ $(dst)/%: $(obj)/% @@ -23,6 +23,11 @@ $(dst)/%: $(obj)/%
@ -37,14 +37,17 @@ index 9d920419a62c..b66af344040d 100644
ifdef CONFIG_ARCH_WANT_FLAT_DTB_INSTALL ifdef CONFIG_ARCH_WANT_FLAT_DTB_INSTALL
@@ -33,7 +38,9 @@ endef @@ -33,7 +38,12 @@ endef
$(foreach d, $(sort $(dir $(dtbs))), $(eval $(call gen_install_rules,$(d)))) $(foreach d, $(sort $(dir $(dtbs))), $(eval $(call gen_install_rules,$(d))))
-dtbs := $(notdir $(dtbs)) -dtbs := $(notdir $(dtbs))
+# Armbian uses subdirectories <overlay> but not <allwinner/overlay>. +# Armbian uses subdirectories <overlay> for arm
+# delete the vendor's directory +# and <allwinner/overlay> for arm64.
+# delete the vendor's directory if the target architecture is an arm.
+ifdef CONFIG_ARM
+dtbs := $(patsubst $(vendor)%,%,$(dtbs)) +dtbs := $(patsubst $(vendor)%,%,$(dtbs))
+endif
endif # CONFIG_ARCH_WANT_FLAT_DTB_INSTALL endif # CONFIG_ARCH_WANT_FLAT_DTB_INSTALL