All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Makefile: Create a file to indicate the config
@ 2021-08-07  1:44 Simon Glass
  2021-08-07  1:44 ` [PATCH 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Glass @ 2021-08-07  1:44 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Michal Simek, huang lin, Jeffy Chen, Simon Glass, Kever Yang,
	Philipp Tomsich, NXP i . MX U-Boot Team, Tom Rini,
	Masahiro Yamada

At present it is not actually possible to discover the defconfig file that
was used to build U-Boot, so far as I can tell. Write this out to a file
in the build directory, so this is visible.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 scripts/kconfig/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index d52128425ce..bfb92a50bf9 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -92,8 +92,10 @@ else
 endif
 endif
 
+# Write out the defconfig name to a file so we know which board was configured
 %_defconfig: $(obj)/conf
 	$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
+	$(Q)echo $(subst _defconfig,,$@) > .defconfig_name
 
 # Added for U-Boot (backward compatibility)
 %_config: %_defconfig
-- 
2.32.0.605.g8dce9f2422-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR
  2021-08-07  1:44 [PATCH 1/2] Makefile: Create a file to indicate the config Simon Glass
@ 2021-08-07  1:44 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2021-08-07  1:44 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Michal Simek, huang lin, Jeffy Chen, Simon Glass, Kever Yang,
	Philipp Tomsich, NXP i . MX U-Boot Team, Tom Rini,
	Marek Behún, Masahiro Yamada, Pali Rohár

More than a year after this migration message appeared, we still have new
boards being added with this option. Add a check against this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 Makefile                      |  6 +++
 scripts/fit_gen_whitelist.txt | 89 +++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 scripts/fit_gen_whitelist.txt

diff --git a/Makefile b/Makefile
index 269e353a28a..49d09550337 100644
--- a/Makefile
+++ b/Makefile
@@ -1110,6 +1110,12 @@ ifeq ($(CONFIG_OF_EMBED),y)
 	@echo >&2 "===================================================="
 endif
 ifneq ($(CONFIG_SPL_FIT_GENERATOR),)
+	# Only allow existing users of this deprecated option. Please migrate!
+	@if ! grep -q $(shell cat .defconfig_name) \
+			$(srctree)/scripts/fit_gen_whitelist.txt; then \
+		echo >&2 "Error: CONFIG_SPL_FIT_GENERATOR is deprecated"; \
+		exit 1; \
+	fi
 	@echo >&2 "===================== WARNING ======================"
 	@echo >&2 "This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate"
 	@echo >&2 "to binman instead, to avoid the proliferation of"
diff --git a/scripts/fit_gen_whitelist.txt b/scripts/fit_gen_whitelist.txt
new file mode 100644
index 00000000000..7e365553f7d
--- /dev/null
+++ b/scripts/fit_gen_whitelist.txt
@@ -0,0 +1,89 @@
+# List of boards that need to be migrated from SPL_FIT_GENERATOR to binman
+# See https://patchwork.ozlabs.org/project/uboot/list/?series=242992&state=*
+# for an example series (see patches 7 and 13 in particular)
+
+# Please do not add to this file
+
+# Some TI boards need migration
+am335x_evm_spiboot
+am64x_evm_a53
+am64x_evm_r5
+am65x_evm_r5_usbdfu
+am65x_evm_r5_usbmsc
+
+# MX8 needs migration
+cgtqmx8_defconfig
+imx8mm_beacon_defconfig
+imx8mm-icore-mx8mm-ctouch2_defconfig
+imx8mm-icore-mx8mm-edimm2.2_defconfig
+imx8mm_venice_defconfig
+imx8mn_beacon_2g_defconfig
+imx8mn_beacon_defconfig
+imx8mq_evk_defconfig
+imx8mq_phanbell_defconfig
+imx8qm_rom7720_a1_4G_defconfig
+phycore-imx8mm_defconfig
+pico-imx8mq_defconfig
+verdin-imx8mm_defconfig
+
+# Rockchip needs migration
+
+chromebook_bob
+evb-px30
+evb-px5
+evb-rk3036
+evb-rk3128
+evb-rk3229
+evb-rk3288
+evb-rk3308
+evb-rk3328
+evb-rk3399
+evb-rk3568
+evb-rv1108
+ficus-rk3399
+firefly-px30
+firefly-rk3399
+khadas-edge-captain-rk3399
+khadas-edge-rk3399
+khadas-edge-v-rk3399
+kylin-rk3036
+leez-rk3399
+lion-rk3368
+nanopc-t4-rk3399
+nanopi-m4-2gb-rk3399
+nanopi-m4b-rk3399
+nanopi-m4-rk3399
+nanopi-neo4-rk3399
+nanopi-r2s-rk3328
+nanopi-r4s-rk3399
+odroid-go2 roc-cc-rk3308
+orangepi-rk3399
+pinebook-pro-rk3399
+puma-rk3399
+px30-core-ctouch2-px30
+px30-core-edimm2.2-px30
+roc-cc-rk3328
+rock64-rk3328
+rock960-rk3399
+rock-pi-4c-rk3399
+rock-pi-4-rk3399
+rock-pi-e-rk3328
+rock-pi-n10-rk3399pro
+rock-pi-n8-rk3288
+rockpro64-rk3399
+roc-pc-mezzanine-rk3399
+roc-pc-rk3399
+sheep-rk3368
+tinker-rk3288
+tinker-s-rk3288
+
+# Zynqmp needs mnigration
+avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0
+xilinx_zynqmp_mini
+xilinx_zynqmp_mini_emmc0
+xilinx_zynqmp_mini_emmc1
+xilinx_zynqmp_mini_nand
+xilinx_zynqmp_mini_nand_single
+xilinx_zynqmp_mini_qspi
+xilinx_zynqmp_r5
+xilinx_zynqmp_virt
-- 
2.32.0.605.g8dce9f2422-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-07  1:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07  1:44 [PATCH 1/2] Makefile: Create a file to indicate the config Simon Glass
2021-08-07  1:44 ` [PATCH 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.