public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] Allow defconfigs defined from fragments
@ 2023-11-01 17:05 Andrew Davis
  2023-11-01 17:05 ` [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor Andrew Davis
  2023-11-01 17:05 ` [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs Andrew Davis
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Davis @ 2023-11-01 17:05 UTC (permalink / raw)
  To: Neha Malcom Francis, Simon Glass, Tom Rini, Bryan Brattlof,
	Praneeth Bajjuri, Robert Nelson, Vignesh Raghavendra,
	Nishanth Menon, Mattijs Korpershoek, Jan Kiszka,
	Heinrich Schuchardt
  Cc: u-boot, Andrew Davis

Hello all,

For context see thread ending here[0].

Thanks,
Andrew

Changes from RFC[1]:
 - Added Reviewed-by

[0] https://marc.info/?l=u-boot&m=169333616210919&w=2
[1] https://lists.denx.de/pipermail/u-boot/2023-August/529084.html

Andrew Davis (2):
  Makefile: Run defconfig files through the C preprocessor
  configs: Add am62x_beagleplay_* defconfigs

 configs/am62x_beagleplay_a53_defconfig | 3 +++
 configs/am62x_beagleplay_r5_defconfig  | 3 +++
 scripts/kconfig/Makefile               | 3 ++-
 3 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 configs/am62x_beagleplay_a53_defconfig
 create mode 100644 configs/am62x_beagleplay_r5_defconfig

-- 
2.39.2


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

* [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor
  2023-11-01 17:05 [PATCH 0/2] Allow defconfigs defined from fragments Andrew Davis
@ 2023-11-01 17:05 ` Andrew Davis
  2023-11-02 17:33   ` Nishanth Menon
  2023-11-01 17:05 ` [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs Andrew Davis
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Davis @ 2023-11-01 17:05 UTC (permalink / raw)
  To: Neha Malcom Francis, Simon Glass, Tom Rini, Bryan Brattlof,
	Praneeth Bajjuri, Robert Nelson, Vignesh Raghavendra,
	Nishanth Menon, Mattijs Korpershoek, Jan Kiszka,
	Heinrich Schuchardt
  Cc: u-boot, Andrew Davis

This allows us to use some of the normal preprocessor directives inside
defconfig files. Such as #define and #include.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 scripts/kconfig/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 2d97aab8d21..5ce5845e824 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -93,7 +93,8 @@ endif
 endif
 
 %_defconfig: $(obj)/conf
-	$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
+	$(Q)$(CPP) -nostdinc -I $(srctree) -undef -x assembler-with-cpp $(srctree)/arch/$(SRCARCH)/configs/$@ -o generated_defconfig
+	$(Q)$< $(silent) --defconfig=generated_defconfig $(Kconfig)
 
 # Added for U-Boot (backward compatibility)
 %_config: %_defconfig
-- 
2.39.2


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

* [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs
  2023-11-01 17:05 [PATCH 0/2] Allow defconfigs defined from fragments Andrew Davis
  2023-11-01 17:05 ` [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor Andrew Davis
@ 2023-11-01 17:05 ` Andrew Davis
  2023-11-02 17:34   ` Nishanth Menon
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Davis @ 2023-11-01 17:05 UTC (permalink / raw)
  To: Neha Malcom Francis, Simon Glass, Tom Rini, Bryan Brattlof,
	Praneeth Bajjuri, Robert Nelson, Vignesh Raghavendra,
	Nishanth Menon, Mattijs Korpershoek, Jan Kiszka,
	Heinrich Schuchardt
  Cc: u-boot, Andrew Davis

Add am62x_beagleplay_r5_defconfig for R5 SPL and
am62x_beagleplay_a53_defconfig for A53 SPL and U-Boot support.

These defconfigs are composite defconfigs built from the config fragment
board/ti/am62x/beagleplay_*.config applied onto the base
am62x_evm_*_defconfig.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 configs/am62x_beagleplay_a53_defconfig | 3 +++
 configs/am62x_beagleplay_r5_defconfig  | 3 +++
 2 files changed, 6 insertions(+)
 create mode 100644 configs/am62x_beagleplay_a53_defconfig
 create mode 100644 configs/am62x_beagleplay_r5_defconfig

diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig
new file mode 100644
index 00000000000..ad708e15397
--- /dev/null
+++ b/configs/am62x_beagleplay_a53_defconfig
@@ -0,0 +1,3 @@
+// The BeaglePlay defconfig for A53 core
+#include "configs/am62x_evm_a53_defconfig"
+#include "board/ti/am62x/beagleplay_a53.config"
diff --git a/configs/am62x_beagleplay_r5_defconfig b/configs/am62x_beagleplay_r5_defconfig
new file mode 100644
index 00000000000..276b1f81a3e
--- /dev/null
+++ b/configs/am62x_beagleplay_r5_defconfig
@@ -0,0 +1,3 @@
+// The BeaglePlay defconfig for R5 core
+#include "configs/am62x_evm_r5_defconfig"
+#include "board/ti/am62x/beagleplay_r5.config"
-- 
2.39.2


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

* Re: [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor
  2023-11-01 17:05 ` [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor Andrew Davis
@ 2023-11-02 17:33   ` Nishanth Menon
  0 siblings, 0 replies; 5+ messages in thread
From: Nishanth Menon @ 2023-11-02 17:33 UTC (permalink / raw)
  To: Andrew Davis
  Cc: Neha Malcom Francis, Simon Glass, Tom Rini, Bryan Brattlof,
	Praneeth Bajjuri, Robert Nelson, Vignesh Raghavendra,
	Mattijs Korpershoek, Jan Kiszka, Heinrich Schuchardt, u-boot

On 12:05-20231101, Andrew Davis wrote:
> This allows us to use some of the normal preprocessor directives inside
> defconfig files. Such as #define and #include.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Nishanth Menon <nm@ti.com>


-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

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

* Re: [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs
  2023-11-01 17:05 ` [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs Andrew Davis
@ 2023-11-02 17:34   ` Nishanth Menon
  0 siblings, 0 replies; 5+ messages in thread
From: Nishanth Menon @ 2023-11-02 17:34 UTC (permalink / raw)
  To: Andrew Davis
  Cc: Neha Malcom Francis, Simon Glass, Tom Rini, Bryan Brattlof,
	Praneeth Bajjuri, Robert Nelson, Vignesh Raghavendra,
	Mattijs Korpershoek, Jan Kiszka, Heinrich Schuchardt, u-boot

On 12:05-20231101, Andrew Davis wrote:
> Add am62x_beagleplay_r5_defconfig for R5 SPL and
> am62x_beagleplay_a53_defconfig for A53 SPL and U-Boot support.
> 
> These defconfigs are composite defconfigs built from the config fragment
> board/ti/am62x/beagleplay_*.config applied onto the base
> am62x_evm_*_defconfig.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>  configs/am62x_beagleplay_a53_defconfig | 3 +++
>  configs/am62x_beagleplay_r5_defconfig  | 3 +++
>  2 files changed, 6 insertions(+)
>  create mode 100644 configs/am62x_beagleplay_a53_defconfig
>  create mode 100644 configs/am62x_beagleplay_r5_defconfig
> 
> diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig
> new file mode 100644
> index 00000000000..ad708e15397
> --- /dev/null
> +++ b/configs/am62x_beagleplay_a53_defconfig
> @@ -0,0 +1,3 @@
> +// The BeaglePlay defconfig for A53 core
> +#include "configs/am62x_evm_a53_defconfig"
> +#include "board/ti/am62x/beagleplay_a53.config"
> diff --git a/configs/am62x_beagleplay_r5_defconfig b/configs/am62x_beagleplay_r5_defconfig
> new file mode 100644
> index 00000000000..276b1f81a3e
> --- /dev/null
> +++ b/configs/am62x_beagleplay_r5_defconfig
> @@ -0,0 +1,3 @@
> +// The BeaglePlay defconfig for R5 core
> +#include "configs/am62x_evm_r5_defconfig"
> +#include "board/ti/am62x/beagleplay_r5.config"

Let us also update the documentation doc/board/ti/am62x_beagleplay.rst
to point people to this configuration?


-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

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

end of thread, other threads:[~2023-11-02 17:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 17:05 [PATCH 0/2] Allow defconfigs defined from fragments Andrew Davis
2023-11-01 17:05 ` [PATCH 1/2] Makefile: Run defconfig files through the C preprocessor Andrew Davis
2023-11-02 17:33   ` Nishanth Menon
2023-11-01 17:05 ` [PATCH 2/2] configs: Add am62x_beagleplay_* defconfigs Andrew Davis
2023-11-02 17:34   ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox