Add option to use Ada code in romstage
commitfa83887e48f196cfa303ce6de32acf1dfec7cad9
authorJeremy Compostella <jeremy.compostella@intel.com>
Thu, 1 Dec 2022 02:26:01 +0000 (30 19:26 -0700)
committerMartin L Roth <gaumless@gmail.com>
Sat, 17 Dec 2022 20:48:06 +0000 (17 20:48 +0000)
tree1eb1a776d3e3e02c182db936dc9e6ad38529bf9b
parente6b96dceabb9cc4e79653c7992b8c16ac3d234ce
Add option to use Ada code in romstage

If selected, libgnat is linked into romstage. In addition, a call to
romstage_adainit() is added to support Ada program data
initialization.

BUG=b:252792591
BRANCH=firmware-brya-14505.B
TEST=Ada code compiles for romstage and loads successfully

Change-Id: I74f0460f6b14fde2b4bd6391e1782b2e5b217707
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70274
Reviewed-by: Tarun Tuli <taruntuli@google.com>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Makefile
src/cpu/intel/car/romstage.c
src/include/adainit.h
src/lib/Kconfig
src/lib/Makefile.inc
src/lib/gnat/Makefile.inc