summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2015-09-29 16:41:19 +0200
committerNico Huber <nico.h@gmx.de>2016-09-19 11:14:49 +0200
commitbe5492aec0a02e416cf12a7ad7517900540d9991 (patch)
tree2ca46cf377203c8146378bcc74a0be6317f09ef2 /Makefile
parent2e09d2b239ff2dfdba89011fd64d9a07da0d8717 (diff)
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 <nico.huber@secunet.com> Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/11836 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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)))