aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-03-20 14:41:54 +0000
committerJohn Crispin <john@openwrt.org>2016-03-20 14:41:54 +0000
commitd6d0597cdf2f8fc7ba305a920c20a7fb912d8401 (patch)
tree8c15f4a8db38d1c30678c3f9bbdff3279809d24d /target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch
parent217a64375547a6a5f2aba81bd1dcb0b99148c2ba (diff)
downloadupstream-d6d0597cdf2f8fc7ba305a920c20a7fb912d8401.tar.gz
upstream-d6d0597cdf2f8fc7ba305a920c20a7fb912d8401.tar.bz2
upstream-d6d0597cdf2f8fc7ba305a920c20a7fb912d8401.zip
lantiq: use upstream mechanism to append device tree file
Instead of using our patch-dtb program just place the device tree behind the kernel binary and then let the in kernel mechanism fetch it. This also adds support for having the device tree file in the boot loader. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49050
Diffstat (limited to 'target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch')
-rw-r--r--target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch b/target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch
new file mode 100644
index 0000000000..2b7b6f1ba0
--- /dev/null
+++ b/target/linux/lantiq/patches-4.4/0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch
@@ -0,0 +1,37 @@
+From 8cfe01de7d5c974165c1383fcc9e1dad6953341d Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Sat, 19 Mar 2016 17:06:00 +0100
+Subject: [PATCH 2/2] MIPS: lantiq: make it possible to build in no device tree
+
+Now it is possible to build in no device tree at all and depend on the
+boot loader providing one or someone concatenating a device tree to the
+end of the image.
+
+This was copied from arch/mips/bmips/Kconfig
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ arch/mips/lantiq/Kconfig | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+--- a/arch/mips/lantiq/Kconfig
++++ b/arch/mips/lantiq/Kconfig
+@@ -27,7 +27,17 @@ config SOC_FALCON
+ endchoice
+
+ choice
+- prompt "Devicetree"
++ prompt "Built-in device tree"
++ help
++ Legacy bootloaders do not pass a DTB pointer to the kernel, so
++ if a "wrapper" is not being used, the kernel will need to include
++ a device tree that matches the target board.
++
++ The builtin DTB will only be used if the firmware does not supply
++ a valid DTB.
++
++config LANTIQ_DT_NONE
++ bool "None"
+
+ config DT_EASY50712
+ bool "Easy50712"