mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Added NANO option in Makefile (default: NANO=NO)
This commit is contained in:
parent
329458e138
commit
22ec446d16
1 changed files with 11 additions and 1 deletions
|
@ -289,6 +289,10 @@ USB = JOYSTICK
|
||||||
# NO - normal behaviour, show real channel values
|
# NO - normal behaviour, show real channel values
|
||||||
CHANNELS_MONITOR_INV_HIDE = NO
|
CHANNELS_MONITOR_INV_HIDE = NO
|
||||||
|
|
||||||
|
# Use newlib-nano
|
||||||
|
# Values = NO, YES
|
||||||
|
NANO = NO
|
||||||
|
|
||||||
#------- END BUILD OPTIONS ---------------------------
|
#------- END BUILD OPTIONS ---------------------------
|
||||||
|
|
||||||
# Define programs and commands.
|
# Define programs and commands.
|
||||||
|
@ -718,6 +722,12 @@ ifeq ($(PCB), TARANIS)
|
||||||
EXTRABOARDSRC += targets/taranis/usbd_storage_msd.cpp
|
EXTRABOARDSRC += targets/taranis/usbd_storage_msd.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(NANO), YES)
|
||||||
|
# use newlib-nano for linking
|
||||||
|
NEWLIB_NANO_FLAGS = --specs=nano.specs -u _printf_float
|
||||||
|
CPPDEFS += -DNANO
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(LUA), NO)
|
ifneq ($(LUA), NO)
|
||||||
ifeq ($(LUA), YES)
|
ifeq ($(LUA), YES)
|
||||||
CPPDEFS += -DLUA_MODEL_SCRIPTS
|
CPPDEFS += -DLUA_MODEL_SCRIPTS
|
||||||
|
@ -1389,7 +1399,7 @@ OBJS = $(TMP:.s=.o)
|
||||||
@echo
|
@echo
|
||||||
@echo $(MSG_COMPILING) $@
|
@echo $(MSG_COMPILING) $@
|
||||||
$(CC) $(ARMCPPFLAGS) $< -o allsrc.o
|
$(CC) $(ARMCPPFLAGS) $< -o allsrc.o
|
||||||
$(CC) $(OBJS) allsrc.o -mcpu=cortex-m3 -mthumb -nostartfiles -lm -T$(LDSCRIPT) -Wl,-Map=$(TARGET).map,--cref,--no-warn-mismatch,--gc-sections -o $@
|
$(CC) $(OBJS) allsrc.o -mcpu=cortex-m3 -mthumb -nostartfiles -lm -T$(LDSCRIPT) -Wl,-Map=$(TARGET).map,--cref,--no-warn-mismatch,--gc-sections $(NEWLIB_NANO_FLAGS) -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Target: clean project.
|
# Target: clean project.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue