software: do not build libdyld and libunwind for lm32. Closes #22
authorSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 19 Oct 2015 03:33:21 +0000 (11:33 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 19 Oct 2015 03:33:21 +0000 (11:33 +0800)
misoc/software/libdyld/Makefile
misoc/software/libunwind/Makefile

index 9dcac10cecd749dd2ef9ffabc512df94fc14893f..14ec99f547fb43b3eeeac48a1538c199b0ed8dde 100644 (file)
@@ -1,11 +1,18 @@
 include ../include/generated/variables.mak
 include $(MISOC_DIRECTORY)/software/common.mak
 
+# lm32 is not supported
+ifeq ($(CPU),lm32)
+       ALL_TARGET=
+else
+       ALL_TARGET=libdyld.a
+endif
+
 COMMONFLAGS += -I$(MISOC_DIRECTORY)/software/include/dyld
 
 OBJECTS=dyld.o
 
-all: libdyld.a
+all: $(ALL_TARGET)
 
 # pull in dependency info for *existing* .o files
 -include $(OBJECTS:.o=.d)
index 26ae44aca63a2ce7c7b1ca4bd1e69da15f7db4b4..b35c8626ace493b73115620bd95ae52c764faf5b 100644 (file)
@@ -1,6 +1,13 @@
 include ../include/generated/variables.mak
 include $(MISOC_DIRECTORY)/software/common.mak
 
+# lm32 is not supported
+ifeq ($(CPU),lm32)
+       ALL_TARGET=
+else
+       ALL_TARGET=libunwind.a
+endif
+
 COMMONFLAGS+=-integrated-as \
        -I. -I$(MISOC_DIRECTORY)/software/include/dyld/ -I$(MISOC_DIRECTORY)/software/unwinder/include/ \
        -I$(LIBUNWIND_DIRECTORY) \
@@ -8,7 +15,7 @@ COMMONFLAGS+=-integrated-as \
 
 OBJECTS=UnwindRegistersSave.o UnwindRegistersRestore.o UnwindLevel1.o libunwind.o
 
-all: libunwind.a
+all: $(ALL_TARGET)
 
 # pull in dependency info for *existing* .o files
 -include $(OBJECTS:.o=.d)