public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kautuk Consul <kconsul@ventanamicro.com>
To: "Bharat Gooty" <bharat.gooty@broadcom.com>,
	"Rayagonda Kokatanur" <rayagonda.kokatanur@broadcom.com>,
	"Sean Anderson" <sean.anderson@seco.com>,
	"Andre Przywara" <andre.przywara@arm.com>,
	"Simon Glass" <sjg@chromium.org>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Philippe Reynes" <philippe.reynes@softathome.com>,
	"Sughosh Ganu" <sughosh.ganu@linaro.org>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Rasmus Villemoes" <rasmus.villemoes@prevas.dk>,
	"Eugen Hristev" <eugen.hristev@microchip.com>,
	"Pali Rohár" <pali@kernel.org>, "Stefan Roese" <sr@denx.de>,
	"Minkyu Kang" <mk7.kang@samsung.com>,
	"Loic Poulain" <loic.poulain@linaro.org>,
	u-boot@lists.denx.de, ycliang@andestech.com, bmeng.cn@gmail.com,
	rickchen36@gmail.com
Cc: Kautuk Consul <kconsul@ventanamicro.com>
Subject: [PATCH v6 3/3] common/spl/Kconfig: add dependency on SPL_SEMIHOSTING for SPL payload
Date: Wed,  7 Dec 2022 17:12:36 +0530	[thread overview]
Message-ID: <20221207114236.2906956-4-kconsul@ventanamicro.com> (raw)
In-Reply-To: <20221207114236.2906956-1-kconsul@ventanamicro.com>

When we enable CONFIG_SPL and CONFIG_SPL_SEMIHOSTING then the code
in common/spl/spl_semihosting.c tries to use the
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME string which remains undeclared
unless SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS are configured.

Add a dependency of SPL_SEMIHOSTING in the depends for
SPL_FS_LOAD_PAYLOAD_NAME so that the code compiles fine.

Signed-off-by: Kautuk Consul <kconsul@ventanamicro.com>
---
 common/spl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index fef01bdd7d..6c4848f3b9 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -691,7 +691,7 @@ config SPL_FS_FAT
 
 config SPL_FS_LOAD_PAYLOAD_NAME
 	string "File to load for U-Boot from the filesystem"
-	depends on SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS
+	depends on SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS || SPL_SEMIHOSTING
 	default "tispl.bin" if SYS_K3_SPL_ATF
 	default "u-boot.itb" if SPL_LOAD_FIT
 	default "u-boot.img"
-- 
2.34.1


      parent reply	other threads:[~2022-12-07 11:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07 11:42 [PATCH v6 0/3] Add riscv semihosting support in u-boot Kautuk Consul
2022-12-07 11:42 ` [PATCH v6 1/3] lib: Add common semihosting library Kautuk Consul
2022-12-07 11:42 ` [PATCH v6 2/3] arch/riscv: add semihosting support for RISC-V Kautuk Consul
2022-12-07 11:42 ` Kautuk Consul [this message]

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=20221207114236.2906956-4-kconsul@ventanamicro.com \
    --to=kconsul@ventanamicro.com \
    --cc=andre.przywara@arm.com \
    --cc=bharat.gooty@broadcom.com \
    --cc=bmeng.cn@gmail.com \
    --cc=eugen.hristev@microchip.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=loic.poulain@linaro.org \
    --cc=mk7.kang@samsung.com \
    --cc=pali@kernel.org \
    --cc=philippe.reynes@softathome.com \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=rayagonda.kokatanur@broadcom.com \
    --cc=rickchen36@gmail.com \
    --cc=sean.anderson@seco.com \
    --cc=sjg@chromium.org \
    --cc=sr@denx.de \
    --cc=sughosh.ganu@linaro.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    --cc=ycliang@andestech.com \
    /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