From 2b90f675b2e9d3d07b50dee8dbe1fc3a1235b203 Mon Sep 17 00:00:00 2001 From: Michael Jakob Date: Sun, 28 Dec 2014 12:45:15 +0100 Subject: [PATCH] Support ALIENWIIF1 as an separate target This will allow to build an HEX file independently to the NAZE target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An ALIENWIIF3 may also come in the future based on STM32F303. Both likely will share the same default settings. This is why I don’t use ALIENWII32 as target name yet. --- .travis.yml | 1 + Makefile | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9ef497f54..a456e51de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ env: - TARGET=PORT103R - TARGET=SPARKY - TARGET=STM32F3DISCOVERY + - TARGET=ALIENWIIF1 language: c compiler: arm-none-eabi-gcc before_install: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded && sudo apt-get update diff --git a/Makefile b/Makefile index 735281011..1b4f18ba8 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ SERIAL_DEVICE ?= /dev/ttyUSB0 FORKNAME = cleanflight -VALID_TARGETS = NAZE NAZE32PRO OLIMEXINO STM32F3DISCOVERY CHEBUZZF3 CC3D CJMCU EUSTM32F103RC MASSIVEF3 PORT103R SPARKY +VALID_TARGETS = NAZE NAZE32PRO OLIMEXINO STM32F3DISCOVERY CHEBUZZF3 CC3D CJMCU EUSTM32F103RC MASSIVEF3 PORT103R SPARKY ALIENWIIF1 # Valid targets for OP BootLoader support OPBL_VALID_TARGETS = CC3D @@ -152,6 +152,12 @@ endif TARGET_DIR = $(ROOT)/src/main/target/$(TARGET) TARGET_SRC = $(notdir $(wildcard $(TARGET_DIR)/*.c)) +ifeq ($(TARGET),ALIENWIIF1) +# ALIENWIIF1 is a VARIANT of NAZE +TARGET_FLAGS := $(TARGET_FLAGS) -DNAZE -DALIENWII32 +TARGET_DIR = $(ROOT)/src/main/target/NAZE +endif + INCLUDE_DIRS := $(INCLUDE_DIRS) \ $(TARGET_DIR) @@ -251,6 +257,8 @@ NAZE_SRC = startup_stm32f10x_md_gcc.S \ $(HIGHEND_SRC) \ $(COMMON_SRC) +ALIENWIIF1_SRC = $(NAZE_SRC) + EUSTM32F103RC_SRC = startup_stm32f10x_hd_gcc.S \ drivers/accgyro_adxl345.c \ drivers/accgyro_bma280.c \