diff options
author | Tom Rini <trini@konsulko.com> | 2023-04-06 09:48:58 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 15:31:28 -0400 |
commit | ac44c6cf957a91cea5271334c2d6e6cd867cb5d6 (patch) | |
tree | 3d0e8532bd1419bca8e0b92b40060e399756d331 /api | |
parent | 6326519f5755bbb72ff2f1b4747236790b5bb980 (diff) | |
download | u-boot-ac44c6cf957a91cea5271334c2d6e6cd867cb5d6.tar.gz u-boot-ac44c6cf957a91cea5271334c2d6e6cd867cb5d6.tar.bz2 u-boot-ac44c6cf957a91cea5271334c2d6e6cd867cb5d6.zip |
api: Rework menu, and make it depend on CC_IS_GCC
We can only use the old U-Boot API for standalone applications when
building U-Boot with GCC as it relies upon the "gd is a register" trick
that only GCC supports. Further, rework the rest of the options so that
they are in the API menu and only visible if API support is enabled.
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'api')
-rw-r--r-- | api/Kconfig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/api/Kconfig b/api/Kconfig index 6072288f9b..b5a7399d7f 100644 --- a/api/Kconfig +++ b/api/Kconfig @@ -1,13 +1,14 @@ -menu "API" - config API bool "Enable U-Boot API" + depends on CC_IS_GCC help This option enables the U-Boot API. See api/README for more information. +menu "API" + depends on API + config SYS_MMC_MAX_DEVICE int "Maximum number of MMC devices exposed via the API" - depends on API default 1 config EXAMPLES |