d566fd5209
While it made the mini2g not crash during startup anymore further tests showed
that other mini2g devices still exhibit the crash, or end up with a "No
partition found" error; furthermore the device tested first still crashes on
USB disconnect. Therefore the change doesn't really help with the problem, and
at the expense of increasing binary size for all other targets there is no
point in keeping it for now.
This reverts commit 850491a043
.
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
# __________ __ ___.
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
# \/ \/ \/ \/ \/
|
|
|
|
FIXEDPOINTLIB := $(BUILDDIR)/lib/libfixedpoint.a
|
|
FIXEDPOINTLIB_DIR := $(ROOTDIR)/lib/fixedpoint
|
|
FIXEDPOINTLIB_SRC := $(FIXEDPOINTLIB_DIR)/fixedpoint.c
|
|
FIXEDPOINTLIB_OBJ := $(call c2obj, $(FIXEDPOINTLIB_SRC))
|
|
|
|
INCLUDES += -I$(FIXEDPOINTLIB_DIR)
|
|
OTHER_SRC += $(FIXEDPOINTLIB_SRC)
|
|
|
|
# If not SOFTWARECODECS, then only plugins depend upon us
|
|
ifdef SOFTWARECODECS
|
|
CORE_LIBS += $(FIXEDPOINTLIB)
|
|
CORE_GCSECTIONS := yes
|
|
endif
|
|
|
|
FIXEDPOINTLIB_FLAGS := $(CFLAGS) $(SHARED_CFLAGS)
|
|
|
|
# Do not use '-ffunction-sections' and '-fdata-sections' when compiling sdl-sim
|
|
ifneq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim)
|
|
FIXEDPOINTLIB_FLAGS += -ffunction-sections -fdata-sections
|
|
endif
|
|
|
|
$(FIXEDPOINTLIB_OBJ): $(FIXEDPOINTLIB_SRC)
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \
|
|
$(FIXEDPOINTLIB_FLAGS) -c $< -o $@
|
|
|
|
$(FIXEDPOINTLIB): $(FIXEDPOINTLIB_OBJ)
|
|
$(SILENT)$(shell rm -f $@)
|
|
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|