]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
linux: support multiple custom DTS files
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 25 Jul 2014 21:25:32 +0000 (17:25 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 28 Jul 2014 20:35:12 +0000 (22:35 +0200)
[Thomas: fix minor typo in help text.]

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
linux/Config.in
linux/linux.mk

index 441301f1b52e3746f521bf46b82e67e9b29b4616..825dd3bf9356108a611a8be5776428b4f74839cb 100644 (file)
@@ -323,10 +323,12 @@ config BR2_LINUX_KERNEL_INTREE_DTS_NAME
          dts files to build, separated by spaces.
 
 config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
-       string "Device Tree Source file path"
+       string "Device Tree Source file paths"
        depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
        help
-         Path to the device tree source file
+         Path to the device tree source files. You can
+         provide a list of dts paths to copy and build,
+         separated by spaces.
 
 endif
 
index 2a9bf3e55f3c854aaaabd239fdfb00879f781dd9..a5699f9d7d2f493011035ddf66853a16b23807b4 100644 (file)
@@ -264,7 +264,7 @@ endif
 # configuration has changed.
 define LINUX_BUILD_CMDS
        $(if $(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),
-               cp $(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH) $(KERNEL_ARCH_PATH)/boot/dts/)
+               cp $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)) $(KERNEL_ARCH_PATH)/boot/dts/)
        $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)
        @if grep -q "CONFIG_MODULES=y" $(@D)/.config; then      \
                $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ;       \