meson64-6.12: borrow rockchip64-6.12's general-add-overlay-compilation-support.patch

This commit is contained in:
Ricardo Pardini 2024-11-17 15:35:23 +01:00
parent e6744c61bc
commit 98a8823ba7
1 changed files with 14 additions and 17 deletions

View File

@ -1,11 +1,11 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Paolo Sabatino <paolo.sabatino@gmail.com> From: Paolo Sabatino <paolo.sabatino@gmail.com>
Date: Sun, 2 Jun 2024 21:53:01 +0200 Date: Wed, 2 Oct 2024 19:30:34 +0300
Subject: compile .scr and install overlays in right path Subject: compile .scr and install overlays in right path
--- ---
scripts/Makefile.dtbinst | 13 +++++++++- scripts/Makefile.dtbinst | 13 +++++++++-
scripts/Makefile.lib | 8 +++++- scripts/Makefile.dtbs | 8 +++++-
2 files changed, 19 insertions(+), 2 deletions(-) 2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst
@ -32,22 +32,19 @@ index 111111111111..222222222222 100644
endif # CONFIG_ARCH_WANT_FLAT_DTB_INSTALL endif # CONFIG_ARCH_WANT_FLAT_DTB_INSTALL
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib diff --git a/scripts/Makefile.dtbs b/scripts/Makefile.dtbs
index 111111111111..222222222222 100644 index 111111111111..222222222222 100644
--- a/scripts/Makefile.lib --- a/scripts/Makefile.dtbs
+++ b/scripts/Makefile.lib +++ b/scripts/Makefile.dtbs
@@ -405,7 +405,7 @@ cmd_dtb_check = $(if $(dtb-check-enabled),; $(DT_CHECKER) $(DT_CHECKER_FLAGS) -u @@ -122,17 +122,23 @@ dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
quiet_cmd_dtc = DTC $(quiet_dtb_check_tag) $@ quiet_cmd_dtc = DTC $(quiet_dtb_check_tag) $@
cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ cmd_dtc = \
- $(DTC) -o $@ -b 0 \ $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
+ $(DTC) -@ -o $@ -b 0 \ - $(DTC) -o $@ -b 0 $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) \
$(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ + $(DTC) -@ -o $@ -b 0 $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) \
-d $(depfile).dtc.tmp $(dtc-tmp) ; \ $(DTC_FLAGS) -d $(depfile).dtc.tmp $(dtc-tmp) ; \
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) \
@@ -430,12 +430,18 @@ DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.json $(cmd_dtb_check)
dtb-check-enabled = $(if $(filter %.dtb, $@),y)
endif
+quiet_cmd_scr = MKIMAGE $@ +quiet_cmd_scr = MKIMAGE $@
+cmd_scr = mkimage -C none -A $(ARCH) -T script -d $< $@ +cmd_scr = mkimage -C none -A $(ARCH) -T script -d $< $@
@ -61,9 +58,9 @@ index 111111111111..222222222222 100644
+$(obj)/%.scr: $(src)/%.scr-cmd FORCE +$(obj)/%.scr: $(src)/%.scr-cmd FORCE
+ $(call if_changed,scr) + $(call if_changed,scr)
+ +
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) # targets
# ---------------------------------------------------------------------------
# Bzip2
-- --
Armbian Armbian