From 26dcccb705cfffff1a28f3c4fb53fb950afc683c Mon Sep 17 00:00:00 2001 From: Aditya Prayoga Date: Fri, 11 Oct 2019 14:41:21 +0700 Subject: [PATCH] Added overlay support U-Boot already support device tree overlay. However, it requires the base dtb to be compiled with __symbol__ support. This commit added patches to compile dtb with required parameter. Signed-off-by: Aditya Prayoga --- .../compile-dtb-with-symbol-support.patch | 14 ++++++++++++++ .../compile-dtb-with-symbol-support.patch | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 patch/kernel/mvebu-default/compile-dtb-with-symbol-support.patch create mode 100644 patch/kernel/mvebu-next/compile-dtb-with-symbol-support.patch diff --git a/patch/kernel/mvebu-default/compile-dtb-with-symbol-support.patch b/patch/kernel/mvebu-default/compile-dtb-with-symbol-support.patch new file mode 100644 index 000000000..13e97d590 --- /dev/null +++ b/patch/kernel/mvebu-default/compile-dtb-with-symbol-support.patch @@ -0,0 +1,14 @@ +diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib +index aac94d96..d22bb79d 100644 +--- a/scripts/Makefile.lib ++++ b/scripts/Makefile.lib +@@ -270,6 +270,9 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ + # --------------------------------------------------------------------------- + DTC ?= $(objtree)/scripts/dtc/dtc + ++# Enable overlay support ++DTC_FLAGS += -@ ++ + # Disable noisy checks by default + ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),) + DTC_FLAGS += -Wno-unit_address_vs_reg \ diff --git a/patch/kernel/mvebu-next/compile-dtb-with-symbol-support.patch b/patch/kernel/mvebu-next/compile-dtb-with-symbol-support.patch new file mode 100644 index 000000000..1eb431e87 --- /dev/null +++ b/patch/kernel/mvebu-next/compile-dtb-with-symbol-support.patch @@ -0,0 +1,14 @@ +diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib +index 61e596650..fdb066e51 100644 +--- a/scripts/Makefile.lib ++++ b/scripts/Makefile.lib +@@ -244,6 +244,9 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ + # --------------------------------------------------------------------------- + DTC ?= $(objtree)/scripts/dtc/dtc + ++# Enable overlay support ++DTC_FLAGS += -@ ++ + # Disable noisy checks by default + ifeq ($(findstring 1,$(KBUILD_ENABLE_EXTRA_GCC_CHECKS)),) + DTC_FLAGS += -Wno-unit_address_vs_reg \