Skip to content

Commit

Permalink
size optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmiriuta committed Sep 8, 2020
1 parent c4beef3 commit e594898
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions make/source.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,22 @@ SPEED_OPTIMISED_SRC := $(SPEED_OPTIMISED_SRC) \
$(TARGET_DIR_SRC) \
main.c \
common/common.c \
config/config.c \
drivers/adc.c \
drivers/led.c \
drivers/eeprom.c \
drivers/watchdog.c \
drivers/system.c \
drivers/input.c \
drivers/motor.c \
drivers/uart.c \
drivers/telemetry.c

SIZE_OPTIMISED_SRC := ""
SIZE_OPTIMISED_SRC := $(SIZE_OPTIMISED_SRC) \
$(TARGET_DIR_SRC) \
config/config.c \
drivers/eeprom.c \
drivers/system.c

# check if target.mk supplied
SRC := $(STARTUP_DIR)/$(STARTUP_SRC) $(COMMON_SRC) $(SPEED_OPTIMISED_SRC) $(MCU_SRC) $(CMSIS_SRC) $(DRIVER_SRC)
SRC := $(STARTUP_DIR)/$(STARTUP_SRC) $(COMMON_SRC) $(SPEED_OPTIMISED_SRC) $(SIZE_OPTIMISED_SRC) $(MCU_SRC) $(CMSIS_SRC) $(DRIVER_SRC)

#excludes
SRC := $(filter-out ${MCU_EXCLUDES}, $(SRC))

0 comments on commit e594898

Please sign in to comment.