rockbox/lib/mipsunwinder/mipsunwinder.make
Aidan MacDonald 981e972839 mips: add native backtrace implementation
Should make debugging crashes on native MIPS targets far easier.
This is by no means a 100% complete or robust implementation but
it seems to handle the vast majority of functions.

Change-Id: Id5f430270e02b5092b79026b6876675c784aa649
2022-05-22 07:16:11 -04:00

23 lines
884 B
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
#
MIPSUNWINDERLIB_DIR = $(ROOTDIR)/lib/mipsunwinder
MIPSUNWINDERLIB_SRC = $(call preprocess, $(MIPSUNWINDERLIB_DIR)/SOURCES)
MIPSUNWINDERLIB_OBJ := $(call c2obj, $(MIPSUNWINDERLIB_SRC))
OTHER_SRC += $(MIPSUNWINDERLIB_SRC)
MIPSUNWINDERLIB = $(BUILDDIR)/lib/libmipsunwinder.a
CORE_LIBS += $(MIPSUNWINDERLIB)
INCLUDES += -I$(MIPSUNWINDERLIB_DIR)
DEFINES += -DBACKTRACE_MIPSUNWINDER
$(MIPSUNWINDERLIB): $(MIPSUNWINDERLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null