From fa83887e48f196cfa303ce6de32acf1dfec7cad9 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Wed, 30 Nov 2022 19:26:01 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70274 Reviewed-by: Tarun Tuli Reviewed-by: Nick Vaccaro Tested-by: build bot (Jenkins) --- src/include/adainit.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/adainit.h') diff --git a/src/include/adainit.h b/src/include/adainit.h index 4953d4476d..041ef677ad 100644 --- a/src/include/adainit.h +++ b/src/include/adainit.h @@ -15,6 +15,12 @@ * lizations automatically. When not, we have to call it explicitly. */ +#if CONFIG(ROMSTAGE_ADA) +void romstage_adainit(void); +#else +static inline void romstage_adainit(void) {} +#endif + #if CONFIG(RAMSTAGE_ADA) void ramstage_adainit(void); #else -- cgit v1.2.3