diff mbox

linux: support multiple custom DTS files

Message ID 1406323532-18764-1-git-send-email-eeppeliteloop@gmail.com
State Accepted
Headers show

Commit Message

Philippe Proulx July 25, 2014, 9:25 p.m. UTC
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
---
 linux/Config.in | 6 ++++--
 linux/linux.mk  | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

Comments

Thomas Petazzoni July 28, 2014, 8:36 p.m. UTC | #1
Dear Philippe Proulx,

On Fri, 25 Jul 2014 17:25:32 -0400, Philippe Proulx wrote:
> Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
> ---
>  linux/Config.in | 6 ++++--
>  linux/linux.mk  | 2 +-
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/linux/Config.in b/linux/Config.in
> index 441301f..a7a3911 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -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 file. You can

file -> files.

Applied with this fixed, thanks.

Thomas
Philippe Proulx July 28, 2014, 11:52 p.m. UTC | #2
On Mon, Jul 28, 2014 at 4:36 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
>
> Dear Philippe Proulx,
>
> On Fri, 25 Jul 2014 17:25:32 -0400, Philippe Proulx wrote:
> > Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
> > ---
> >  linux/Config.in | 6 ++++--
> >  linux/linux.mk  | 2 +-
> >  2 files changed, 5 insertions(+), 3 deletions(-)
> >
> > diff --git a/linux/Config.in b/linux/Config.in
> > index 441301f..a7a3911 100644
> > --- a/linux/Config.in
> > +++ b/linux/Config.in
> > @@ -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 file. You can
>
> file -> files.

Well then you should also apply this to the help text of
BR2_LINUX_KERNEL_INTREE_DTS_NAME because I just
copied this as is to keep it consistent:

config BR2_LINUX_KERNEL_INTREE_DTS_NAME
  string "Device Tree Source file names"
  depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
  help
    Name of the device tree source file, without
    the trailing .dts. You can provide a list of
    dts files to build, separated by spaces.
>
>
> Applied with this fixed, thanks.

Thank you,
Phil
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
Thomas Petazzoni July 29, 2014, 7:10 a.m. UTC | #3
Dear Philippe Proulx,

On Mon, 28 Jul 2014 19:52:43 -0400, Philippe Proulx wrote:

> Well then you should also apply this to the help text of
> BR2_LINUX_KERNEL_INTREE_DTS_NAME because I just
> copied this as is to keep it consistent:
> 
> config BR2_LINUX_KERNEL_INTREE_DTS_NAME
>   string "Device Tree Source file names"
>   depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
>   help
>     Name of the device tree source file, without
>     the trailing .dts. You can provide a list of
>     dts files to build, separated by spaces.

Sure, but that should be part of a separate patch. Maybe you just
volunteered to send such a patch? :-)

Thanks!

Thomas
diff mbox

Patch

diff --git a/linux/Config.in b/linux/Config.in
index 441301f..a7a3911 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -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 file. You can
+	  provide a list of dts paths to copy and build,
+	  separated by spaces.
 
 endif
 
diff --git a/linux/linux.mk b/linux/linux.mk
index 2a9bf3e..a5699f9 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -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 ;	\