Made SIMULATOR_BUILD a makefile driven option.

This commit is contained in:
mikeller 2018-05-13 02:26:17 +12:00
parent ede204aa81
commit 7a03ead75e
3 changed files with 5 additions and 1 deletions

View File

@ -182,6 +182,10 @@ else
COMMON_SRC := $(COMMON_SRC) $(FC_SRC) $(COMMON_DEVICE_SRC)
endif
ifeq ($(SIMULATOR_BUILD),yes)
TARGET_FLAGS := -DSIMULATOR_BUILD $(TARGET_FLAGS)
endif
SPEED_OPTIMISED_SRC := ""
SIZE_OPTIMISED_SRC := ""

View File

@ -182,6 +182,7 @@ TARGET_MCU := STM32F7
else ifeq ($(TARGET),$(filter $(TARGET), $(SITL_TARGETS)))
TARGET_MCU := SITL
SIMULATOR_BUILD = yes
else ifeq ($(TARGET),$(filter $(TARGET), $(F1_TARGETS)))
TARGET_MCU := STM32F1

View File

@ -29,7 +29,6 @@
#define TARGET_BOARD_IDENTIFIER "SITL"
#define SIMULATOR_BUILD
#define SIMULATOR_MULTITHREAD
// use simulatior's attitude directly