Skip to content

Commit

Permalink
software: do not build libdyld and libunwind for lm32. Closes #22
Browse files Browse the repository at this point in the history
sbourdeauducq committed Oct 19, 2015
1 parent 884faed commit e645216
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion misoc/software/libdyld/Makefile
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 8 additions & 1 deletion misoc/software/libunwind/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
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) \
-D__ELF__ -D__linux__ -D_LIBUNWIND_NO_HEAP -DNDEBUG

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)

0 comments on commit e645216

Please sign in to comment.