mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software: add minimal xilinx library makefile
This commit is contained in:
parent
6705972713
commit
0c57021c3c
1 changed files with 31 additions and 0 deletions
31
litex/soc/software/libxil/Makefile
Normal file
31
litex/soc/software/libxil/Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue