Move board specific files to board directory
Subsystems (4)
cover Move board specific files to board directory
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildman boundary -b denx_master
But it is likely the more scripts then just tools/genboardscfg.py would need to be updated.
Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allow CONFIG_SYS_CONFIG_NAME file to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directory
arch/arm/dts/Makefile | 3 --
board/boundary/nitrogen6x/MAINTAINERS | 13 -------
board/boundary/nitrogen6x/Makefile | 13 +++++++
.../nitrogen6x}/imx6dl-nitrogen6x.dts | 0
.../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0
.../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0
.../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0
.../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0
.../nitrogen6x}/mx6qsabrelite_defconfig | 0
.../nitrogen6x}/nitrogen6dl2g_defconfig | 0
.../nitrogen6x}/nitrogen6dl_defconfig | 0
.../nitrogen6x}/nitrogen6q2g_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6q_defconfig | 0
.../nitrogen6x}/nitrogen6s1g_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6s_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6x.h | 2 +-
dts/Makefile | 11 +++++-
scripts/Makefile.autoconf | 9 ++++-
scripts/Makefile.lib | 1 +
scripts/kconfig/Makefile | 9 ++++-
tools/genboardscfg.py | 37 ++++++++++++++++++-
21 files changed, 75 insertions(+), 23 deletions(-)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%)
rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%)
rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%)Signature · 1 line
2.32.0
PATCH 1/5 kconfig: allow defconfigs to live in board directory
This will reduce the size of the configs directory, and make it more clear which board directory uses the defconfig file.
--- scripts/kconfig/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
scripts/kconfig/Makefile +8 -1
@@ -92,8 +92,15 @@ else endif endif +%_defconfig: SHELL:=/bin/bash %_defconfig: $(obj)/conf - $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) + $(Q)readarray -d '' names < <(find $(srctree)/configs $(srctree)/board -type f -name $@ -print0); \ + if (test $${#names[*]} -eq 1); then \ + $< $(silent) --defconfig="$${names[0]}" $(Kconfig); \ + else \ + echo "$@" not found or ambiguous error; \ + echo "$${names[@]}"; exit 1; \ + fi # Added for U-Boot (backward compatibility) %_config: %_defconfig
Signature · 1 line
2.32.0
Re: [PATCH v1 1/5] kconfig: allow defconfigs to live in board directory
Hi Troy,
Quoted 9 lines · Troy Kisky
This will reduce the size of the configs directory, and make it more clear which board directory uses the defconfig file.
Signed-off-by Troy Kisky <[email protected]>--- scripts/kconfig/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Quoted 23 lines
scripts/kconfig/Makefile +8
-2@@ -92,8 +92,15 @@ else endif endif +%_defconfig: SHELL:=/bin/bash %_defconfig: $(obj)/conf - $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) + $(Q)readarray -d '' names < <(find $(srctree)/configs $(srctree)/board -type f -name $@ -print0); \ + if (test $${#names[*]} -eq 1); then \ + $< $(silent) --defconfig="$${names[0]}" $(Kconfig); \ + else \ + echo "$@" not found or ambiguous error; \ + echo "$${names[@]}"; exit 1; \ + fi # Added for U-Boot (backward compatibility) %_config: %_defconfig --
Quoted 2 lines
2.32.0
How could this ever match more than one file?
Regards,
Simon
Re: [PATCH v1 1/5] kconfig: allow defconfigs to live in board directory
Quoted 43 lines · Simon Glass
Hi Troy,
Quoted 9 lines · Troy Kisky
This will reduce the size of the configs directory, and make it more clear which board directory uses the defconfig file.
Signed-off-by Troy Kisky <[email protected]>--- scripts/kconfig/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)Reviewed-by Simon Glass <[email protected]>Quoted 23 lines
scripts/kconfig/Makefile +8
-2@@ -92,8 +92,15 @@ else endif endif +%_defconfig: SHELL:=/bin/bash %_defconfig: $(obj)/conf - $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) + $(Q)readarray -d '' names < <(find $(srctree)/configs $(srctree)/board -type f -name $@ -print0); \ + if (test $${#names[*]} -eq 1); then \ + $< $(silent) --defconfig="$${names[0]}" $(Kconfig); \ + else \ + echo "$@" not found or ambiguous error; \ + echo "$${names[@]}"; exit 1; \ + fi # Added for U-Boot (backward compatibility) %_config: %_defconfig --Quoted 2 lines
2.32.0
How could this ever match more than one file?
Quoted 2 lines
Regards,
Simon
If two different vendors decide to use the same defconfig file name, this will hit when the 2nd one tries to merge it upstream.
BR
Troy
PATCH 2/5 dts: allow dts files in board directory
In reply to Troy KiskyLet the board specific dts files live in the board directory.
--- dts/Makefile | 11 +++++++++-- scripts/Makefile.lib | 1 + 2 files changed, 10 insertions(+), 2 deletions(-)
dts/Makefile +9 -2
@@ -13,7 +13,9 @@ endif ifneq ($(EXT_DTB),) DTB := $(EXT_DTB) else -DTB := arch/$(ARCH)/dts/$(DEVICE_TREE).dtb +ifneq "$(ARCH)" "arm64" +DTB := $(patsubst $(srctree)/%.dts,%.dtb,$(shell find "$(srctree)/board/$(BOARDDIR)" $(srctree)/arch/$(ARCH)/dts/ -type f -name $(DEVICE_TREE).dts)) +endif endif $(obj)/dt-$(SPL_NAME).dtb: dts/dt.dtb $(objtree)/tools/fdtgrep FORCE
@@ -40,8 +42,13 @@ $(DTB): arch-dtbs /bin/false) PHONY += arch-dtbs +ifneq "$(patsubst board/$(BOARDDIR)/%,,$(DTB))" "" arch-dtbs: $(Q)$(MAKE) $(build)=arch/$(ARCH)/dts dtbs +else +arch-dtbs: + $(Q)$(MAKE) $(build)="board/$(BOARDDIR)" dtbs +endif ifeq ($(CONFIG_SPL_BUILD),y) obj-$(CONFIG_OF_EMBED) := dt-spl.dtb.o
@@ -63,4 +70,4 @@ spl_dtbs: $(obj)/dt-$(SPL_NAME).dtb clean-files := dt.dtb.S # Let clean descend into dts directories -subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/mips/dts ../arch/sandbox/dts ../arch/x86/dts ../arch/powerpc/dts ../arch/riscv/dts +subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/mips/dts ../arch/sandbox/dts ../arch/x86/dts ../arch/powerpc/dts ../arch/riscv/dts ../$(patsubst $(srctree)/%/,%,$(dir $(shell find $(srctree)/board -type f -name "*.dtb")))
scripts/Makefile.lib +1 -0
@@ -183,6 +183,7 @@ u_boot_dtsi = $(strip $(u_boot_dtsi_options_debug) \ # Modified for U-Boot dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ + -I$(srctree)/board/$(BOARDDIR) \ -I$(srctree)/arch/$(ARCH)/dts \ -I$(srctree)/arch/$(ARCH)/dts/include \ -Iinclude \
Signature · 1 line
2.32.0
Re: [PATCH v1 2/5] dts: allow dts files in board directory
Hi Troy,
Quoted 8 lines · Troy Kisky
Let the board specific dts files live in the board directory.
Signed-off-by Troy Kisky <[email protected]>--- dts/Makefile | 11 +++++++++-- scripts/Makefile.lib | 1 + 2 files changed, 10 insertions(+), 2 deletions(-)
I think .dts files should be built at the SoC level, at the finest. Otherwise we might change a .dtsi and break something without knowing...and it is very hard to know what other builds to do. This seems to be heading towards target-specific building.
Regards,
Simon
Re: [PATCH v1 2/5] dts: allow dts files in board directory
Quoted 12 lines · Simon Glass
Hi Troy,
Quoted 8 lines · Troy Kisky
Let the board specific dts files live in the board directory.
Signed-off-by Troy Kisky <[email protected]>--- dts/Makefile | 11 +++++++++-- scripts/Makefile.lib | 1 + 2 files changed, 10 insertions(+), 2 deletions(-)
Quoted 7 lines
I think .dts files should be built at the SoC level, at the finest. Otherwise we might change a .dtsi and break something without knowing...and it is very hard to know what other builds to do. This seems to be heading towards target-specific building.
Regards,
Simon
I can try to address that in the next rev, if that is the only thing stopping it.
Thanks for the review.
Troy
PATCH 3/5 scripts: Makefile.autoconf: allow CONFIG_SYS_CONFIG_NAME file to live in board directory
In reply to Troy KiskyLet the board specific include file live in the board directory.
--- scripts/Makefile.autoconf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
scripts/Makefile.autoconf +7 -2
@@ -103,9 +103,14 @@ define filechk_config_h echo \#define CONFIG_$$i \ | sed '/=/ {s/=/ /;q; } ; { s/$$/ 1/; }'; \ done; \ - echo \#define CONFIG_BOARDDIR board/$(if $(VENDOR),$(VENDOR)/)$(BOARD);\ + config_boarddir=board/$(if $(VENDOR),$(VENDOR)/)$(BOARD); \ + echo \#define CONFIG_BOARDDIR $$config_boarddir; \ echo \#include \<config_uncmd_spl.h\>; \ - echo \#include \<configs/$(CONFIG_SYS_CONFIG_NAME).h\>; \ + if [ -f $(srctree)/$$config_boarddir/$(CONFIG_SYS_CONFIG_NAME).h ] ; then \ + echo \#include \"../$$config_boarddir/$(CONFIG_SYS_CONFIG_NAME).h\"; \ + else \ + echo \#include \<configs/$(CONFIG_SYS_CONFIG_NAME).h\>; \ + fi; \ echo \#include \<asm/config.h\>; \ echo \#include \<linux/kconfig.h\>; \ echo \#include \<config_fallbacks.h\>;)
Signature · 1 line
2.32.0
Re: [PATCH v1 3/5] scripts: Makefile.autoconf: allow CONFIG_SYS_CONFIG_NAME file to live in board directory
Hi Troy,
Quoted 7 lines · Troy Kisky
Let the board specific include file live in the board directory.
Signed-off-by Troy Kisky <[email protected]>--- scripts/Makefile.autoconf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
We are actually working on deleting these. What is the benefit of putting it here?
Quoted 23 lines
scripts/Makefile.autoconf +7
-3@@ -103,9 +103,14 @@ define filechk_config_h echo \#define CONFIG_$$i \ | sed '/=/ {s/=/ /;q; } ; { s/$$/ 1/; }'; \ done; \ - echo \#define CONFIG_BOARDDIR board/$(if $(VENDOR),$(VENDOR)/)$(BOARD);\ + config_boarddir=board/$(if $(VENDOR),$(VENDOR)/)$(BOARD); \ + echo \#define CONFIG_BOARDDIR $$config_boarddir; \ echo \#include \<config_uncmd_spl.h\>; \ - echo \#include \<configs/$(CONFIG_SYS_CONFIG_NAME).h\>; \ + if [ -f $(srctree)/$$config_boarddir/$(CONFIG_SYS_CONFIG_NAME).h ] ; then \ + echo \#include \"../$$config_boarddir/$(CONFIG_SYS_CONFIG_NAME).h\"; \ + else \ + echo \#include \<configs/$(CONFIG_SYS_CONFIG_NAME).h\>; \ + fi; \ echo \#include \<asm/config.h\>; \ echo \#include \<linux/kconfig.h\>; \ echo \#include \<config_fallbacks.h\>;) --
Quoted 2 lines
2.32.0
Regards,
Simon
Re: [PATCH v1 3/5] scripts: Makefile.autoconf: allow CONFIG_SYS_CONFIG_NAME file to live in board directory
Quoted 6 lines · Simon Glass
Hi Troy,
Quoted 3 lines · Troy Kisky
Let the board specific include file live in the board directory.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Troy Kisky <[email protected]>--- scripts/Makefile.autoconf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)We are actually working on deleting these. What is the benefit of putting it here?
Do you have an estimate on how long until the 1st one can be deleted?
The main benefit that I see is making it easier to clone or compare boards. You just duplicate/diff everything in the board directory and rename files to taste.
My goal for this series is NOT to force everyone to update their board, but rather to allow new boards to have all their board specific files in one directory.
BR
Troy
Re: [PATCH v1 3/5] scripts: Makefile.autoconf: allow CONFIG_SYS_CONFIG_NAME file to live in board directory
Hi Troy,
Quoted 13 lines · Troy Kisky
Quoted 11 lines · Simon Glass
Hi Troy,
Quoted 7 lines · Troy Kisky
Let the board specific include file live in the board directory.
Signed-off-by Troy Kisky <[email protected]>--- scripts/Makefile.autoconf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 6 lines
Quoted 3 lines
We are actually working on deleting these. What is the benefit of putting it here?
Do you have an estimate on how long until the 1st one can be deleted?
If you look at sandbox.h it is fairly close, but still perhaps a release or two away.
I'm not all that keen on adding the board directory as an include directory, although I suppose it is OK. We need a way to know which files are config.h headers so things like moveconfig can update them easily and we can implement things like this:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Quoted 3 lines
The main benefit that I see is making it easier to clone or compare boards. You just duplicate/diff everything in the board directory and rename files to taste.
Yes I see that. Was that mentioned in the cover letter? I might have missed it sorry.
Quoted 3 lines
My goal for this series is NOT to force everyone to update their board, but rather to allow new boards to have all their board specific files in one directory.
OK.
Regards,
Simon
PATCH 4/5 genboardcfg: allow defconfigs in board directory
In reply to Troy KiskyThe adds boards whose defconfigs are in the board's directory.
--- tools/genboardscfg.py | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-)
tools/genboardscfg.py +36 -1
@@ -37,6 +37,13 @@ COMMENT_BLOCK = '''# ''' % __file__ ### helper functions ### +def find_defconfig_in_board_subdir(f): + for (dirpath, dirnames, filenames) in os.walk('board'): + for filename in filenames: + if filename == f: + return True + return False + def try_remove(f): """Remove a file ignoring 'No such file or directory' error.""" try:
@@ -76,6 +83,14 @@ def output_is_new(output): if ctime < os.path.getctime(filepath): return False + for (dirpath, dirnames, filenames) in os.walk('board'): + for filename in fnmatch.filter(filenames, '*'): + if fnmatch.fnmatch(filename, '.*'): + continue + filepath = os.path.join(dirpath, filename) + if ctime < os.path.getctime(filepath): + return False + for (dirpath, dirnames, filenames) in os.walk('.'): for filename in filenames: if (fnmatch.fnmatch(filename, '*~') or
@@ -94,7 +109,8 @@ def output_is_new(output): continue defconfig = line.split()[6] + '_defconfig' if not os.path.exists(os.path.join(CONFIG_DIR, defconfig)): - return False + if not find_defconfig_in_board_subdir(defconfig): + return False return True
@@ -231,6 +247,12 @@ def scan_defconfigs(jobs=1): continue all_defconfigs.append(os.path.join(dirpath, filename)) + for (dirpath, dirnames, filenames) in os.walk('board'): + for filename in fnmatch.filter(filenames, '*_defconfig'): + if fnmatch.fnmatch(filename, '.*'): + continue + all_defconfigs.append(os.path.join(dirpath, filename)) + total_boards = len(all_defconfigs) processes = [] queues = []
@@ -346,6 +368,19 @@ class MaintainersDatabase: targets = [] maintainers = [] status = '-' + + front, match, rear = file.partition('board/') + if match: + front, match, rear = file.partition('/MAINTAINERS') + if front: + for (dirpath, dirnames, filenames) in os.walk(front): + for filename in fnmatch.filter(filenames, '*_defconfig'): + if fnmatch.fnmatch(filename, '.*'): + continue + front, match, rear = filename.rpartition('_defconfig') + if match and not rear: + targets.append(front) + if targets: for target in targets: self.database[target] = (status, maintainers)
Signature · 1 line
2.32.0
Re: [PATCH v1 4/5] genboardcfg: allow defconfigs in board directory
Hi Troy,
Quoted 7 lines · Troy Kisky
The adds boards whose defconfigs are in the board's directory.
Signed-off-by Troy Kisky <[email protected]>--- tools/genboardscfg.py | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-)
Please see below
tools/genboardscfg.py COMMENT_BLOCK = '''# · line 40
Quoted 9 lines
tools/genboardscfg.py +1
-0@@ -37,6 +37,13 @@ COMMENT_BLOCK = '''# ''' % __file__ ### helper functions ### +def find_defconfig_in_board_subdir(f):
Needs a comment as to what it does and what it returns
Quoted 48 lines
tools/genboardscfg.py +22
-1+ for (dirpath, dirnames, filenames) in os.walk('board'): + for filename in filenames: + if filename == f: + return True + return False + def try_remove(f): """Remove a file ignoring 'No such file or directory' error.""" try:@@ -76,6 +83,14 @@ def output_is_new(output): if ctime < os.path.getctime(filepath): return False + for (dirpath, dirnames, filenames) in os.walk('board'): + for filename in fnmatch.filter(filenames, '*'): + if fnmatch.fnmatch(filename, '.*'): + continue + filepath = os.path.join(dirpath, filename) + if ctime < os.path.getctime(filepath): + return False + for (dirpath, dirnames, filenames) in os.walk('.'): for filename in filenames: if (fnmatch.fnmatch(filename, '*~') or@@ -94,7 +109,8 @@ def output_is_new(output): continue defconfig = line.split()[6] + '_defconfig' if not os.path.exists(os.path.join(CONFIG_DIR, defconfig)): - return False + if not find_defconfig_in_board_subdir(defconfig): + return False return True@@ -231,6 +247,12 @@ def scan_defconfigs(jobs=1): continue all_defconfigs.append(os.path.join(dirpath, filename)) + for (dirpath, dirnames, filenames) in os.walk('board'): + for filename in fnmatch.filter(filenames, '*_defconfig'): + if fnmatch.fnmatch(filename, '.*'): + continue + all_defconfigs.append(os.path.join(dirpath, filename)) + total_boards = len(all_defconfigs) processes = [] queues = []
tools/genboardscfg.py class MaintainersDatabase: · line 372
Quoted 5 lines
tools/genboardscfg.py +2
-0@@ -346,6 +368,19 @@ class MaintainersDatabase: targets = [] maintainers = [] status = '-' + + front, match, rear = file.partition('board/')
Please add a comment about what is going on here
Quoted 15 lines
tools/genboardscfg.py +11
-1+ if match: + front, match, rear = file.partition('/MAINTAINERS') + if front: + for (dirpath, dirnames, filenames) in os.walk(front): + for filename in fnmatch.filter(filenames, '*_defconfig'): + if fnmatch.fnmatch(filename, '.*'): + continue + front, match, rear = filename.rpartition('_defconfig') + if match and not rear: + targets.append(front) + if targets: for target in targets: self.database[target] = (status, maintainers) --
Quoted 2 lines
2.32.0
Regards,
Simon
PATCH 5/5 nitrogen6x: move board specific files to nitrogen6x directory
In reply to Troy KiskyThis makes it clearer which board uses a file.
---
arch/arm/dts/Makefile | 3 ---
board/boundary/nitrogen6x/MAINTAINERS | 13 -------------
board/boundary/nitrogen6x/Makefile | 13 +++++++++++++
.../boundary/nitrogen6x}/imx6dl-nitrogen6x.dts | 0
.../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0
.../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0
.../boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0
.../boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi | 0
.../boundary/nitrogen6x}/mx6qsabrelite_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6dl2g_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6dl_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6q2g_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6q_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6s1g_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6s_defconfig | 0
.../boundary/nitrogen6x}/nitrogen6x.h | 2 +-
16 files changed, 14 insertions(+), 17 deletions(-)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%)
rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%)
rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%)
rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%)arch/arm/dts/Makefile +0 -3
@@ -744,7 +744,6 @@ dtb-y += \ imx6dl-mba6a.dtb \ imx6dl-mba6b.dtb \ imx6dl-mamoj.dtb \ - imx6dl-nitrogen6x.dtb \ imx6dl-pico.dtb \ imx6dl-udoo.dtb \ imx6dl-riotboard.dtb \
@@ -792,13 +791,11 @@ dtb-y += \ imx6q-mba6a.dtb \ imx6q-mba6b.dtb \ imx6q-mccmon6.dtb\ - imx6q-nitrogen6x.dtb \ imx6q-novena.dtb \ imx6q-pico.dtb \ imx6q-phytec-mira-rdk-nand.dtb \ imx6q-udoo.dtb \ imx6q-sabreauto.dtb \ - imx6q-sabrelite.dtb \ imx6q-sabresd.dtb \ imx6q-tbs2910.dtb \ imx6q-wandboard-revd1.dtb \
board/boundary/nitrogen6x/MAINTAINERS +0 -13
@@ -1,17 +1,4 @@ NITROGEN6X BOARD M: Troy Kisky <[email protected]> S: Maintained -F: arch/arm/dts/imx6dl-nitrogen6x.dts -F: arch/arm/dts/imx6q-nitrogen6x.dts -F: arch/arm/dts/imx6q-sabrelite.dts -F: arch/arm/dts/imx6qdl-nitrogen6x.dtsi -F: arch/arm/dts/imx6qdl-sabrelite.dtsi F: board/boundary/nitrogen6x/ -F: include/configs/nitrogen6x.h -F: configs/mx6qsabrelite_defconfig -F: configs/nitrogen6dl_defconfig -F: configs/nitrogen6dl2g_defconfig -F: configs/nitrogen6q_defconfig -F: configs/nitrogen6q2g_defconfig -F: configs/nitrogen6s_defconfig -F: configs/nitrogen6s1g_defconfig
board/boundary/nitrogen6x/Makefile +13 -0
@@ -5,3 +5,16 @@ # Copyright (C) 2013, Boundary Devices <[email protected]> obj-y := nitrogen6x.o + +dtb-y += imx6dl-nitrogen6x.dtb \ + imx6q-nitrogen6x.dtb \ + imx6q-sabrelite.dtb \ + +# Add any required device tree compiler flags here +DTC_FLAGS += -a 0x8 + +PHONY += dtbs +dtbs: $(addprefix $(obj)/, $(dtb-y)) + @: + +clean-files := $(dtb-y)
board/boundary/nitrogen6x/imx6dl-nitrogen6x.dts renamed from arch/arm/dts/imx6dl-nitrogen6x.dts +0 -0
board/boundary/nitrogen6x/imx6q-nitrogen6x.dts renamed from arch/arm/dts/imx6q-nitrogen6x.dts +0 -0
board/boundary/nitrogen6x/imx6q-sabrelite.dts renamed from arch/arm/dts/imx6q-sabrelite.dts +0 -0
board/boundary/nitrogen6x/imx6qdl-nitrogen6x.dtsi renamed from arch/arm/dts/imx6qdl-nitrogen6x.dtsi +0 -0
board/boundary/nitrogen6x/imx6qdl-sabrelite.dtsi renamed from arch/arm/dts/imx6qdl-sabrelite.dtsi +0 -0
board/boundary/nitrogen6x/mx6qsabrelite_defconfig renamed from configs/mx6qsabrelite_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6dl2g_defconfig renamed from configs/nitrogen6dl2g_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6dl_defconfig renamed from configs/nitrogen6dl_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6q2g_defconfig renamed from configs/nitrogen6q2g_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6q_defconfig renamed from configs/nitrogen6q_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6s1g_defconfig renamed from configs/nitrogen6s1g_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6s_defconfig renamed from configs/nitrogen6s_defconfig +0 -0
board/boundary/nitrogen6x/nitrogen6x.h renamed from include/configs/nitrogen6x.h +1 -1
@@ -9,7 +9,7 @@#ifndef __CONFIG_H#define __CONFIG_H -#include "mx6_common.h" +#include <configs/mx6_common.h> #define CONFIG_USBD_HS
Signature · 1 line
2.32.0
Re: [PATCH v1 5/5] nitrogen6x: move board specific files to nitrogen6x directory
Hi Troy,
Quoted 27 lines · Troy Kisky
This makes it clearer which board uses a file.
Signed-off-by Troy Kisky <[email protected]>--- arch/arm/dts/Makefile | 3 --- board/boundary/nitrogen6x/MAINTAINERS | 13 ------------- board/boundary/nitrogen6x/Makefile | 13 +++++++++++++ .../boundary/nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../boundary/nitrogen6x}/mx6qsabrelite_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6dl_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- 16 files changed, 14 insertions(+), 17 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%)
Quoted 8 lines
rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%)
rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%)As mentioned I really don't like the piecemeal building of .dts files that results from this change.
Regards,
Simon
Hi Troy,
Quoted 45 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%)
Quoted 8 lines
rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%)
rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%)
rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Can you please add a few notes about the motivation for this change?
Regards,
Simon
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 45 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%)Quoted 8 lines
rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Signature · 1 line
Tom
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.
Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
Thanks
Troy
Quoted 69 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Quoted 3 lines
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.16
2. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; done
And now we're resynced with v5.16. That gets a lot more complex with board/*/*/*.dts* too. And since those files should be direct imports I'm not sure how them residing in board/ helps.
But! I can see how having board-u-boot.dtsi exist under board/ might help. Or at least, having those files reside somewhere that's NOT where the unmodified imported dts files also live. Long term I think we need to move towards making it easier to import the dts files, and clearer that they should be "read only" other than when being resynced, than it is today.
Signature · 1 line
Tom
Quoted 74 lines · Tom Rini
Quoted 69 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Quoted 3 lines
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
Quoted 6 lines
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; done
Still, a script could easily check that a dts file exists before overwriting it and find the correct directory to put it in. A little more complicated, but not a lot.
Quoted 3 lines
And now we're resynced with v5.16. That gets a lot more complex with board/*/*/*.dts* too. And since those files should be direct imports I'm not sure how them residing in board/ helps.
One thing that maybe be worth remembering, at one time, Linus was suggesting that dtb's would NOT be a permanent part of Linux. That has probably changed, but maybe eventually, that master repo will be vendor specific.
Quoted 8 lines
But! I can see how having
board-u-boot.dtsiexist under board/ might help. Or at least, having those files reside somewhere that's NOT where the unmodified imported dts files also live. Long term I think we need to move towards making it easier to import the dts files, and clearer that they should be "read only" other than when being resynced, than it is today.
If you guys are OK with any of the patches, let me know, and I'll submit a restricted series.
Thanks
Troy
Hi Troy,
Quoted 105 lines · Troy Kisky
Quoted 74 lines · Tom Rini
Quoted 69 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Quoted 3 lines
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
Quoted 6 lines
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; doneStill, a script could easily check that a dts file exists before overwriting it and find the correct directory to put it in. A little more complicated, but not a lot.
Quoted 3 lines
And now we're resynced with v5.16. That gets a lot more complex with board/*/*/*.dts* too. And since those files should be direct imports I'm not sure how them residing in board/ helps.
One thing that maybe be worth remembering, at one time, Linus was suggesting that dtb's would NOT be a permanent part of Linux. That has probably changed, but maybe eventually, that master repo will be vendor specific.
Quoted 8 lines
But! I can see how having
board-u-boot.dtsiexist under board/ might help. Or at least, having those files reside somewhere that's NOT where the unmodified imported dts files also live. Long term I think we need to move towards making it easier to import the dts files, and clearer that they should be "read only" other than when being resynced, than it is today.
Quoted 1 line
If you guys are OK with any of the patches, let me know, and I'll submit a restricted series.
From my side, on the defconfig side, I think it would be OK to allow those in board directories. I'm not quite sure how much it helps, but I don't think it would hurt anything, since it is almost as easy to find *_defconfig as it is to look in the configs/ dir.
I think it would need changes to moveconfig though. Not sure about anything else.
Regards,
Simon
Quoted 104 lines · Troy Kisky
Quoted 74 lines · Tom Rini
Quoted 69 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Quoted 3 lines
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
Quoted 6 lines
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; doneStill, a script could easily check that a dts file exists before overwriting it and find the correct directory to put it in. A little more complicated, but not a lot.
Quoted 3 lines
And now we're resynced with v5.16. That gets a lot more complex with board/*/*/*.dts* too. And since those files should be direct imports I'm not sure how them residing in board/ helps.
One thing that maybe be worth remembering, at one time, Linus was suggesting that dtb's would NOT be a permanent part of Linux. That has probably changed, but maybe eventually, that master repo will be vendor specific.
Quoted 8 lines
But! I can see how having
board-u-boot.dtsiexist under board/ might help. Or at least, having those files reside somewhere that's NOT where the unmodified imported dts files also live. Long term I think we need to move towards making it easier to import the dts files, and clearer that they should be "read only" other than when being resynced, than it is today.
Quoted 1 line
If you guys are OK with any of the patches, let me know, and I'll submit a restricted series.
Again, sorry for the delay. I just don't think right now these file moves are the right path forward. Maybe at some point further down the road perhaps, once other cleanups are done and having defconfig/u-boot.dtsi/etc in the board directory will be easier to maintain long term.
Signature · 1 line
Tom
Quoted 76 lines · Tom Rini
Quoted 75 lines · Troy Kisky
Quoted 74 lines · Tom Rini
Quoted 72 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; done
Perhaps we can mimic Linux's arm/arm64 dts split and make the above work better?
Quoted 32 lines
Quoted 24 lines
Quoted 1 line
Still, a script could easily check that a dts file exists before overwriting it and find the correct directory to put it in. A little more complicated, but not a lot.
Quoted 3 lines
And now we're resynced with v5.16. That gets a lot more complex with board/*/*/*.dts* too. And since those files should be direct imports I'm not sure how them residing in board/ helps.
One thing that maybe be worth remembering, at one time, Linus was suggesting that dtb's would NOT be a permanent part of Linux. That has probably changed, but maybe eventually, that master repo will be vendor specific.
Quoted 8 lines
But! I can see how having
board-u-boot.dtsiexist under board/ might help. Or at least, having those files reside somewhere that's NOT where the unmodified imported dts files also live. Long term I think we need to move towards making it easier to import the dts files, and clearer that they should be "read only" other than when being resynced, than it is today.Quoted 1 line
If you guys are OK with any of the patches, let me know, and I'll submit a restricted series.
Again, sorry for the delay. I just don't think right now these file moves are the right path forward. Maybe at some point further down the road perhaps, once other cleanups are done and having defconfig/u-boot.dtsi/etc in the board directory will be easier to maintain long term.
Quoted 77 lines · Troy Kisky
Quoted 76 lines · Tom Rini
Quoted 75 lines · Troy Kisky
Quoted 74 lines · Tom Rini
Quoted 72 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; donePerhaps we can mimic Linux's arm/arm64 dts split and make the above work better?
Along with making the distinction between what we're mirroring and what we're adding more clear yes, that would be viable I think.
Signature · 1 line
Tom
Quoted 84 lines · Tom Rini
Quoted 83 lines · Troy Kisky
Quoted 81 lines · Tom Rini
Quoted 80 lines · Troy Kisky
Quoted 79 lines · Tom Rini
Quoted 69 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Quoted 3 lines
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; done
Quoted 5 lines
Quoted 1 line
Perhaps we can mimic Linux's arm/arm64 dts split and make the above work better?
Along with making the distinction between what we're mirroring and what we're adding more clear yes, that would be viable I think.
Do you envision the *u-boot.dts not moving with the other files ? Or moving to a directory with a different name? i.e. arm-u-boot, arm64-u-boot, with the same sub-directory structure.
Quoted 85 lines · Troy Kisky
Quoted 84 lines · Tom Rini
Quoted 83 lines · Troy Kisky
Quoted 81 lines · Tom Rini
Quoted 80 lines · Troy Kisky
Quoted 79 lines · Tom Rini
Quoted 69 lines · Troy Kisky
Quoted 58 lines · Tom Rini
Quoted 57 lines · Simon Glass
Hi Troy,
Quoted 53 lines · Troy Kisky
This series intends to let board specific files live in the boards directory. The last patch moves files for nitrogen6x.
I have tested it with buildman
./tools/buildman/buildmanboundary -bdenx_masterBut it is likely the more scripts then just
tools/genboardscfg.pywould need to be updated.Troy Kisky (5):
kconfig: allow defconfigs to live in board directory
dts: allow dts files in board directory
scripts: Makefile.autoconf: allowCONFIG_SYS_CONFIG_NAMEfile to live
in board directory
genboardcfg: allow defconfigs in board directory
nitrogen6x: move board specific files to nitrogen6x directoryarch/arm/dts/Makefile | 3 -- board/boundary/nitrogen6x/MAINTAINERS | 13 ------- board/boundary/nitrogen6x/Makefile | 13 +++++++ .../nitrogen6x}/imx6dl-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-nitrogen6x.dts | 0 .../boundary/nitrogen6x}/imx6q-sabrelite.dts | 0 .../nitrogen6x}/imx6qdl-nitrogen6x.dtsi | 0 .../nitrogen6x}/imx6qdl-sabrelite.dtsi | 0 .../nitrogen6x}/mx6qsabrelite_defconfig | 0 .../nitrogen6x}/nitrogen6dl2g_defconfig | 0 .../nitrogen6x}/nitrogen6dl_defconfig | 0 .../nitrogen6x}/nitrogen6q2g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6q_defconfig | 0 .../nitrogen6x}/nitrogen6s1g_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6s_defconfig | 0 .../boundary/nitrogen6x}/nitrogen6x.h | 2 +- dts/Makefile | 11 +++++- scripts/Makefile.autoconf | 9 ++++- scripts/Makefile.lib | 1 + scripts/kconfig/Makefile | 9 ++++- tools/genboardscfg.py | 37 ++++++++++++++++++- 21 files changed, 75 insertions(+), 23 deletions(-) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6dl-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-nitrogen6x.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6q-sabrelite.dts (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-nitrogen6x.dtsi (100%) rename {arch/arm/dts => board/boundary/nitrogen6x}/imx6qdl-sabrelite.dtsi (100%) rename {configs => board/boundary/nitrogen6x}/mx6qsabrelite_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6dl_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q2g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6q_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s1g_defconfig (100%) rename {configs => board/boundary/nitrogen6x}/nitrogen6s_defconfig (100%) rename {include/configs => board/boundary/nitrogen6x}/nitrogen6x.h (98%) I'm not about the goal.Quoted 9 lines
Quoted 1 line
Can you please add a few notes about the motivation for this change?
Sorry for the delayed reply here. I'm also not entirely sure this is a good idea. Moving the defconfig files? Maybe. It does make checking all configs a bit more tricky, but indeed the configs directory is unwieldy. Moving the dts files? Those should be a direct cp from the kernel, so that makes things less clear to me. Especially since it will need other common files that will still be elsewhere.
Quoted 3 lines
They will still be a direct copy. Notice the 100% rename. Common files still living in the dts directory is less clear. I can try to address the "piecemeal building of .dts files" if this still has a chance of being accepted.
So, here's my worry. Today, in an ideal world that we're not yet at, I could do:
1. cd ~/src/linux; git checkout v5.162. cd ~/src/u-boot; for DTS in arch/arm/dts/*.dts*; do \ [ -f ~/src/linux/$DTS ] && cp ~/src/linux/$DTS $DTS; done
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Perhaps we can mimic Linux's arm/arm64 dts split and make the above work better?
Along with making the distinction between what we're mirroring and what we're adding more clear yes, that would be viable I think.
Do you envision the *u-boot.dts not moving with the other files ? Or moving to a directory with a different name? i.e. arm-u-boot, arm64-u-boot, with the same sub-directory structure.
I'd like to see our -u-boot.dtsi stuff separate, to help with enforcing the notion that dts files go upstream and come back to us unmodified. Then we have our own files to update them as needed, but the core dtses aren't to be changed. Directory structure really comes down to how to easily implement the build rules I guess, so likely needing to follow arm64/dts, etc.
Signature · 1 line
Tom