From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 2/3] ARM: Rockchip: make boards only selectable when firmware is present
Date: Wed, 26 Apr 2023 11:03:53 +0200 [thread overview]
Message-ID: <20230426090354.1350981-3-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20230426090354.1350981-1-s.hauer@pengutronix.de>
The RK356x based boards need a sdram-init.bin file in the board
directory. Make the boards selectable only when the file is present
to avoid failing compilation when the file is missing.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-rockchip/Kconfig | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 0bce83ecee..7acbd87473 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -69,30 +69,35 @@ if 64BIT
config MACH_RK3568_EVB
select ARCH_RK3568
+ depends on $(success,test -e $(srctree)/arch/arm/boards/rockchip-rk3568-evb/sdram-init.bin)
bool "RK3568 EVB"
help
Say Y here if you are using a RK3568 EVB
config MACH_RK3568_BPI_R2PRO
select ARCH_RK3568
+ depends on $(success,test -e $(srctree)/arch/arm/boards/rockchip-rk3568-bpi-r2pro/sdram-init.bin)
bool "RK3568 BPI R2PRO"
help
Say Y here if you are using a RK3568 Bananpi R2 Pro
config MACH_PINE64_QUARTZ64
select ARCH_RK3568
+ depends on $(success,test -e $(srctree)/arch/arm/boards/pine64-quartz64/sdram-init.bin)
bool "Pine64 Quartz64"
help
Say Y here if you are using a Pine64 Quartz64
config MACH_RADXA_ROCK3
- select ARCH_RK3568
- bool "Radxa ROCK3"
- help
+ select ARCH_RK3568
+ depends on $(success,test -e $(srctree)/arch/arm/boards/radxa-rock3/sdram-init.bin)
+ bool "Radxa ROCK3"
+ help
Say Y here if you are using a Radxa ROCK3
config MACH_RADXA_CM3
select ARCH_RK3568
+ depends on $(success,test -e $(srctree)/arch/arm/boards/radxa-cm3/sdram-init.bin)
bool "Radxa CM3"
help
Say Y here if you are using a Radxa CM3
--
2.39.2
next prev parent reply other threads:[~2023-04-26 9:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 9:03 [PATCH 0/3] Compile boards only " Sascha Hauer
2023-04-26 9:03 ` [PATCH 1/3] Kconfig: source Kconfig.include earlier Sascha Hauer
2023-04-26 9:03 ` Sascha Hauer [this message]
2023-04-26 9:03 ` [PATCH 3/3] ARM: i.MX: make boards selectable only when firmware files are present Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230426090354.1350981-3-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox