api: Rework menu, and make it depend on CC_IS_GCC
authorTom Rini <trini@konsulko.com>
Thu, 6 Apr 2023 13:48:58 +0000 (09:48 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:28 +0000 (15:31 -0400)
commitac44c6cf957a91cea5271334c2d6e6cd867cb5d6
tree3d0e8532bd1419bca8e0b92b40060e399756d331
parent6326519f5755bbb72ff2f1b4747236790b5bb980
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>
api/Kconfig