From 0c57021c3c993a6e894d23cb085d81b42f508c11 Mon Sep 17 00:00:00 2001 From: Ilia Sergachev Date: Wed, 22 Dec 2021 03:00:05 +0100 Subject: [PATCH] software: add minimal xilinx library makefile --- litex/soc/software/libxil/Makefile | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 litex/soc/software/libxil/Makefile diff --git a/litex/soc/software/libxil/Makefile b/litex/soc/software/libxil/Makefile new file mode 100644 index 000000000..eeb018fce --- /dev/null +++ b/litex/soc/software/libxil/Makefile @@ -0,0 +1,31 @@ +include ../include/generated/variables.mak +include $(SOC_DIRECTORY)/software/common.mak + +all: libxil.a + +CFLAGS += -nostartfiles + +OBJECTS = xil_cache.o \ + xil_exception.o \ + asm_vectors.o \ + boot.o \ + cpu_init.o \ + translation_table.o \ + xil-crt0.o \ + vectors.o \ + xtime_l.o + +libxil.a: $(OBJECTS) + $(AR) crs $@ $^ + +%.o: embeddedsw/lib/bsp/standalone/src/arm/cortexa9/%.c + $(compile) + +%.o: embeddedsw/lib/bsp/standalone/src/arm/common/%.c + $(compile) + +%.o: embeddedsw/lib/bsp/standalone/src/arm/cortexa9/gcc/%.S + $(assemble) + +clean: + $(RM) $(OBJECTS) libxil.a