* [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans
@ 2018-02-26 17:47 Yann E. MORIN
2018-02-26 17:57 ` Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Yann E. MORIN @ 2018-02-26 17:47 UTC (permalink / raw)
To: buildroot
Just use whatever the user specified in the list. An empty list means no
DTS was specified.
No need to add legacy option, as the behaviour does not change.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Simon van der Veldt <simon.vanderveldt@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
This is an RFC patch, totally untested, as an attempt to fix the fallout
of allowing both in-tree and out-of-tree DTS files at the same time.
It's here just to kickstart a discussion, especially about the help
texts... ;-)
---
linux/Config.in | 28 ++++++----------------------
linux/linux.mk | 4 ----
2 files changed, 6 insertions(+), 26 deletions(-)
diff --git a/linux/Config.in b/linux/Config.in
index 80e85b9e8b..15394eb810 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -363,35 +363,19 @@ config BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
config BR2_LINUX_KERNEL_APPENDED_DTB
bool
-config BR2_LINUX_KERNEL_USE_INTREE_DTS
- bool "Use a device tree present in the kernel"
- help
- Use a device tree source distributed with
- the kernel sources. The dts files are located
- in the arch/<arch>/boot/dts folder.
-
config BR2_LINUX_KERNEL_INTREE_DTS_NAME
- string "Device Tree Source file names"
- depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
+ string "In-tree Device Tree Source file names"
help
- Name of the device tree source file, without
+ Name of in-tree device tree source file, without
the trailing .dts. You can provide a list of
dts files to build, separated by spaces.
-config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
- bool "Use a custom device tree file"
- help
- Use a custom device tree file, i.e, a device
- tree file that does not belong to the kernel
- source tree.
-
config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
- string "Device Tree Source file paths"
- depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
+ string "Out-of-tree Device Tree Source file paths"
help
- Path to the device tree source files. You can
- provide a list of dts paths to copy and build,
- separated by spaces.
+ Path to to out-of-tree device tree source files.
+ 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 ab940e7305..c59050a194 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -118,17 +118,13 @@ endif
# going to be installed in the target filesystem.
LINUX_VERSION_PROBED = `$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelrelease 2>/dev/null`
-ifeq ($(BR2_LINUX_KERNEL_USE_INTREE_DTS),y)
KERNEL_DTS_NAME += $(call qstrip,$(BR2_LINUX_KERNEL_INTREE_DTS_NAME))
-endif
-ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),y)
# We keep only the .dts files, so that the user can specify both .dts
# and .dtsi files in BR2_LINUX_KERNEL_CUSTOM_DTS_PATH. Both will be
# copied to arch/<arch>/boot/dts, but only the .dts files will
# actually be generated as .dtb.
KERNEL_DTS_NAME += $(basename $(filter %.dts,$(notdir $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)))))
-endif
KERNEL_DTBS = $(addsuffix .dtb,$(KERNEL_DTS_NAME))
--
2.14.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans
2018-02-26 17:47 [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans Yann E. MORIN
@ 2018-02-26 17:57 ` Thomas Petazzoni
2018-03-07 22:45 ` Joshua.Henderson at microchip.com
2018-03-30 19:24 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-02-26 17:57 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 26 Feb 2018 18:47:21 +0100, Yann E. MORIN wrote:
> Just use whatever the user specified in the list. An empty list means no
> DTS was specified.
>
> No need to add legacy option, as the behaviour does not change.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Simon van der Veldt <simon.vanderveldt@gmail.com>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
>
> ---
> This is an RFC patch, totally untested, as an attempt to fix the fallout
> of allowing both in-tree and out-of-tree DTS files at the same time.
> It's here just to kickstart a discussion, especially about the help
> texts... ;-)
Yes, I agree with this direction. When I saw the patch allowing to
generate both in-tree and out of tree DTS, I also thought "but why do
we keep those booleans". Next time I should not only "think" but also
write it in an e-mail as a reply to the patch :-)
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans
2018-02-26 17:47 [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans Yann E. MORIN
2018-02-26 17:57 ` Thomas Petazzoni
@ 2018-03-07 22:45 ` Joshua.Henderson at microchip.com
2018-03-08 8:08 ` Peter Korsgaard
2018-03-30 19:24 ` Peter Korsgaard
2 siblings, 1 reply; 5+ messages in thread
From: Joshua.Henderson at microchip.com @ 2018-03-07 22:45 UTC (permalink / raw)
To: buildroot
All,
> -----Original Message-----
> From: buildroot [mailto:buildroot-bounces at busybox.net] On Behalf Of Yann
> E. MORIN
> Sent: Monday, February 26, 2018 10:47 AM
> To: buildroot at buildroot.org
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>; Thomas Petazzoni
> <thomas.petazzoni@bootlin.com>; Simon van der Veldt
> <simon.vanderveldt@gmail.com>
> Subject: [Buildroot] [PATCH RFC next] package/linux: drop useless
> intermediate DTS booleans
>
> Just use whatever the user specified in the list. An empty list means no DTS
> was specified.
>
> No need to add legacy option, as the behaviour does not change.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Simon van der Veldt <simon.vanderveldt@gmail.com>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
>
> ---
> This is an RFC patch, totally untested, as an attempt to fix the fallout of
> allowing both in-tree and out-of-tree DTS files at the same time.
> It's here just to kickstart a discussion, especially about the help texts... ;-)
>
> ---
> linux/Config.in | 28 ++++++---------------------- linux/linux.mk | 4 ----
> 2 files changed, 6 insertions(+), 26 deletions(-)
>
> diff --git a/linux/Config.in b/linux/Config.in index 80e85b9e8b..15394eb810
> 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -363,35 +363,19 @@ config BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
> config BR2_LINUX_KERNEL_APPENDED_DTB
> bool
>
> -config BR2_LINUX_KERNEL_USE_INTREE_DTS
> - bool "Use a device tree present in the kernel"
> - help
> - Use a device tree source distributed with
> - the kernel sources. The dts files are located
> - in the arch/<arch>/boot/dts folder.
> -
> config BR2_LINUX_KERNEL_INTREE_DTS_NAME
> - string "Device Tree Source file names"
> - depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
> + string "In-tree Device Tree Source file names"
> help
> - Name of the device tree source file, without
> + Name of in-tree device tree source file, without
> the trailing .dts. You can provide a list of
> dts files to build, separated by spaces.
>
> -config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
> - bool "Use a custom device tree file"
> - help
> - Use a custom device tree file, i.e, a device
> - tree file that does not belong to the kernel
> - source tree.
> -
> config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
> - string "Device Tree Source file paths"
> - depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
> + string "Out-of-tree Device Tree Source file paths"
> help
> - Path to the device tree source files. You can
> - provide a list of dts paths to copy and build,
> - separated by spaces.
> + Path to to out-of-tree device tree source files.
> + 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 ab940e7305..c59050a194
> 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -118,17 +118,13 @@ endif
> # going to be installed in the target filesystem.
> LINUX_VERSION_PROBED = `$(MAKE) $(LINUX_MAKE_FLAGS) -C
> $(LINUX_DIR) --no-print-directory -s kernelrelease 2>/dev/null`
>
> -ifeq ($(BR2_LINUX_KERNEL_USE_INTREE_DTS),y)
> KERNEL_DTS_NAME += $(call
> qstrip,$(BR2_LINUX_KERNEL_INTREE_DTS_NAME))
> -endif
>
> -ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),y)
> # We keep only the .dts files, so that the user can specify both .dts # and
> .dtsi files in BR2_LINUX_KERNEL_CUSTOM_DTS_PATH. Both will be # copied
> to arch/<arch>/boot/dts, but only the .dts files will # actually be generated
> as .dtb.
> KERNEL_DTS_NAME += $(basename $(filter %.dts,$(notdir $(call
> qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)))))
> -endif
>
> KERNEL_DTBS = $(addsuffix .dtb,$(KERNEL_DTS_NAME))
>
> --
> 2.14.1
>
This is a fix for many current broken defconfigs on master resulting in:
linux/linux.mk:490: *** No kernel device tree source specified, check your BR2_LINUX_KERNEL_USE_INTREE_DTS / BR2_LINUX_KERNEL_USE_CUSTOM_DTS settings. Stop.
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
Tested-by: Joshua Henderson <joshua.henderson@microchip.com>
Josh
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans
2018-03-07 22:45 ` Joshua.Henderson at microchip.com
@ 2018-03-08 8:08 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2018-03-08 8:08 UTC (permalink / raw)
To: buildroot
>>>>> <Joshua.Henderson@microchip.com> writes:
Hi,
> This is a fix for many current broken defconfigs on master resulting in:
> linux/linux.mk:490: *** No kernel device tree source specified,
> check your BR2_LINUX_KERNEL_USE_INTREE_DTS /
> BR2_LINUX_KERNEL_USE_CUSTOM_DTS settings. Stop.
> Makefile:79: recipe for target '_all' failed
> make: *** [_all] Error 2
> Tested-by: Joshua Henderson <joshua.henderson@microchip.com>
Committed, thanks both.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans
2018-02-26 17:47 [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans Yann E. MORIN
2018-02-26 17:57 ` Thomas Petazzoni
2018-03-07 22:45 ` Joshua.Henderson at microchip.com
@ 2018-03-30 19:24 ` Peter Korsgaard
2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2018-03-30 19:24 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> Just use whatever the user specified in the list. An empty list means no
> DTS was specified.
> No need to add legacy option, as the behaviour does not change.
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Simon van der Veldt <simon.vanderveldt@gmail.com>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Committed to 2018.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-03-30 19:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26 17:47 [Buildroot] [PATCH RFC next] package/linux: drop useless intermediate DTS booleans Yann E. MORIN
2018-02-26 17:57 ` Thomas Petazzoni
2018-03-07 22:45 ` Joshua.Henderson at microchip.com
2018-03-08 8:08 ` Peter Korsgaard
2018-03-30 19:24 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox