summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-02-25 08:48:59 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-02-25 09:02:58 +0100
commit5fd08c9c79b31e9d2dcb303bcbb1297d813cd75a (patch)
treeb858fabd47690a3dcc5d6e3bd156d1b429284d60 /platforms
parent0d040be1903f2c9c2c649e4a7972c1df47368271 (diff)
downloadptxdist-5fd08c9c79b31e9d2dcb303bcbb1297d813cd75a.tar.gz
ptxdist-5fd08c9c79b31e9d2dcb303bcbb1297d813cd75a.tar.xz
platform: create a generated section for device tree options
This makes it possible to overwrite it without replacing platforms/Kconfig. Also, cleanup options and make the in-kernel dtc the default. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/Kconfig2
-rw-r--r--platforms/dtc.in29
-rw-r--r--platforms/host-dtc.in25
3 files changed, 30 insertions, 26 deletions
diff --git a/platforms/Kconfig b/platforms/Kconfig
index a5749158f..62a1d50fa 100644
--- a/platforms/Kconfig
+++ b/platforms/Kconfig
@@ -10,7 +10,7 @@ menu "architecture "
source "generated/architecture_options.in"
endmenu
source "platforms/kernel.in"
-source "platforms/dtc.in"
+source "generated/devicetree.in"
source "platforms/console.in"
menu "extra kernel "
diff --git a/platforms/dtc.in b/platforms/dtc.in
index 6f4f64e7e..a39af97e1 100644
--- a/platforms/dtc.in
+++ b/platforms/dtc.in
@@ -1,27 +1,4 @@
-menuconfig HOST_DTC
- bool
- depends on !KERNEL_DTC
- prompt "Build device tree compiler "
- help
- Select this if the HOST_DTC tool is required without
- building a device tree. (It is also used for building
- U-boot FIT images)
-
-if HOST_DTC
-
-config HOST_DTC_VERSION
- string
- prompt "Device tree compiler version"
- default "1.3.0"
- help
- Specify the DTC version number to be used
-
-config HOST_DTC_MD5
- prompt "dtc source md5sum"
- string
-
-endif
-
+## SECTION=devicetree
menuconfig DTC
bool
@@ -48,10 +25,12 @@ config DTC_OFTREE_DTS
help
Select the dts file to use for the device tree binary
blob generation. Default is to use the one shipped with
- the kernel.
+ the kernel. Multiple dts files can be specified, separated
+ by spaces.
config DTC_KERNEL
bool
+ default y
prompt "use kernel dtc"
config DTC_EXTRA_ARGS
diff --git a/platforms/host-dtc.in b/platforms/host-dtc.in
new file mode 100644
index 000000000..4d2107187
--- /dev/null
+++ b/platforms/host-dtc.in
@@ -0,0 +1,25 @@
+## SECTION=devicetree
+
+menuconfig HOST_DTC
+ bool
+ depends on DTC && !KERNEL_DTC
+ prompt "Build device tree compiler "
+ help
+ Select this if the HOST_DTC tool is required without
+ building a device tree. (It is also used for building
+ U-boot FIT images)
+
+if HOST_DTC
+
+config HOST_DTC_VERSION
+ string
+ prompt "Device tree compiler version"
+ default "1.3.0"
+ help
+ Specify the DTC version number to be used
+
+config HOST_DTC_MD5
+ prompt "dtc source md5sum"
+ string
+
+endif