[submodule "litex/soc/software/compiler_rt"]
path = litex/soc/software/compiler_rt
url = http://llvm.org/git/compiler-rt.git
-[submodule "litex/soc/software/unwinder"]
- path = litex/soc/software/unwinder
- url = https://github.com/whitequark/libunwind
+++ /dev/null
-include ../include/generated/variables.mak
-include $(SOC_DIRECTORY)/software/common.mak
-
-# lm32 is not supported
-ifeq ($(CPU),lm32)
- ALL_TARGET=
-else
- ALL_TARGET=libunwind.a
-endif
-
-COMMONFLAGS+=-integrated-as \
- -I. -I$(SOC_DIRECTORY)/software/include/dyld/ -I$(SOC_DIRECTORY)/software/unwinder/include/ \
- -I$(LIBUNWIND_DIRECTORY) \
- -D__ELF__ -D__linux__ -D_LIBUNWIND_NO_HEAP -DNDEBUG
-
-OBJECTS=UnwindRegistersSave.o UnwindRegistersRestore.o UnwindLevel1.o libunwind.o
-
-all: $(ALL_TARGET)
-
-libunwind.a: $(OBJECTS)
- $(AR) crs libunwind.a $(OBJECTS)
-
-%.o: $(SOC_DIRECTORY)/software/unwinder/src/%.cpp
- $(compilexx)
-
-%.o: $(SOC_DIRECTORY)/software/unwinder/src/%.c
- $(compile)
-
-%.o: $(SOC_DIRECTORY)/software/unwinder/src/%.S
- $(assemble)
-
-.PHONY: clean
-
-clean:
- $(RM) $(OBJECTS) libunwind.a .*~ *~