From be5492aec0a02e416cf12a7ad7517900540d9991 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 29 Sep 2015 16:41:19 +0200 Subject: Add minimal GNAT run time system (RTS) Add a stripped-down version of libgnat. This is somehow comparable to libgcc but for Ada programs. It's licensed under GPLv3 but with the runtime library exception. So it's totally fine to link it with our GPLv2 code and keep it under GPLv2. Change-Id: Ie6522abf093f0a516b9ae18ddc69131bd721dc0c Signed-off-by: Nico Huber Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/11836 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Edward O'Callaghan --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 66dbe32334..a79840c2e1 100644 --- a/Makefile +++ b/Makefile @@ -325,6 +325,7 @@ $$(obj)/$(1)/b__$(1).adb: $$$$(filter-out $$(obj)/$(1)/b__$(1).ali,$$$$($(1)-ali # path components) so just cd there. cd $$(dir $$@) && \ $$(GNATBIND_$(1)) -a -n \ + --RTS=$$(absobj)/libgnat-$$(ARCH-$(1)-y)/ \ -L$(1)_ada -o $$(notdir $$@) \ $$(subst $$(dir $$@),,$$^) $$(obj)/$(1)/b__$(1).o: $$(obj)/$(1)/b__$(1).adb @@ -334,7 +335,7 @@ $(1)-objs += $$(obj)/$(1)/b__$(1).o $($(1)-alis): %.ali: %.o endef -$(eval $(foreach class,$(classes), \ +$(eval $(foreach class,$(filter-out libgnat-%,$(classes)), \ $(if $($(class)-alis),$(call gnatbind_template,$(class))))) DEPENDENCIES += $(addsuffix .d,$(basename $(allobjs))) -- cgit v1.2.3