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 --- toolchain.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'toolchain.inc') diff --git a/toolchain.inc b/toolchain.inc index 2876990b02..9b952158d8 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -105,6 +105,11 @@ set_stage_toolchain= \ echo CONFIG_ARCH_$(call map_stage,$(1))_$(arch) | \ tr '[:lower:]' '[:upper:]')) := $(arch))) +# standard-archs: Tell which architectures are used by the standard stages. +standard-archs = $(sort $(foreach stagearch, \ + $(patsubst %,ARCH-%-y,$(COREBOOT_STANDARD_STAGES)), \ + $($(stagearch)))) + # create_class_compiler: Used to create compiler tool set for # special classes # @1: special class @@ -123,7 +128,7 @@ OBJDUMP_$(1) := $(OBJDUMP_$(2)) STRIP_$(1) := $(STRIP_$(2)) READELF_$(1) := $(READELF_$(2)) CFLAGS_$(1) = $$(CFLAGS_common) $$(CFLAGS_$(2)) -ADAFLAGS_$(1) = $$(ADAFLAGS_common) $$(ADAFLAGS_$(2)) +ADAFLAGS_$(1) = --RTS=$$(obj)/libgnat-$(2)/ $$(ADAFLAGS_common) $$(ADAFLAGS_$(2)) CPPFLAGS_$(1) = $$(CPPFLAGS_common) $$(CPPFLAGS_$(2)) -D__ARCH_$(2)__ COMPILER_RT_$(1) := $$(COMPILER_RT_$(2)) COMPILER_RT_FLAGS_$(1) := $$(COMPILER_RT_FLAGS_$(2)) -- cgit v1.2.1