1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Makefile: remove unused USE_I2C option from makefiles

This commit is contained in:
Oleg Semyonov 2013-03-16 11:44:22 +02:00
parent 7e4596ff35
commit 30128517b5
3 changed files with 1 additions and 22 deletions

View File

@ -32,7 +32,6 @@ USE_CAMERASTAB ?= YES
USE_COMUSBBRIDGE ?= YES
USE_GPS ?= YES
USE_TXPID ?= YES
USE_I2C ?= NO
USE_ALTITUDE ?= NO
USE_AUTOTUNE ?= NO
TEST_FAULTS ?= NO
@ -61,18 +60,12 @@ ifeq ($(USE_COMUSBBRIDGE), YES)
endif
ifeq ($(USE_GPS), YES)
OPTMODULES += GPS
CDEFS += -DUSE_GPS
endif
ifeq ($(USE_TXPID), YES)
OPTMODULES += TxPID
endif
ifeq ($(USE_ALTITUDE), YES)
ifeq ($(USE_I2C), YES)
OPTMODULES += Altitude
CDEFS += -DUSE_I2C
else
$(error Altitude module (USE_ALTITUDE=YES) requires i2c (USE_I2C=YES))
endif
OPTMODULES += Altitude
endif
ifeq ($(USE_AUTOTUNE), YES)
OPTMODULES += Autotune

View File

@ -47,7 +47,6 @@ USE_CAMERASTAB ?= NO
USE_COMUSBBRIDGE ?= NO
USE_GPS ?= NO
USE_TXPID ?= NO
USE_I2C ?= NO
USE_ALTITUDE ?= NO
TEST_FAULTS ?= NO
USE_MAGBARO ?= NO
@ -67,21 +66,13 @@ ifeq ($(USE_TXPID), YES)
OPTMODULES += TxPID
endif
ifeq ($(USE_ALTITUDE), YES)
ifeq ($(USE_I2C), YES)
OPTMODULES += Altitude
else
$(error "Altitude module (USE_ALTITUDE=YES) requires i2c (USE_I2C=YES)")
endif
endif
ifeq ($(TEST_FAULTS), YES)
OPTMODULES += Fault
endif
ifeq ($(USE_MAGBARO), YES)
ifeq ($(USE_I2C), YES)
OPTMODULES += Extensions/MagBaro
else
$(error "MagBaro module (USE_MAGBARO=YES) requires i2c (USE_I2C=YES)")
endif
endif
# List of mandatory modules to include

View File

@ -45,7 +45,6 @@ FLASH_TOOL = OPENOCD
# Optional module and driver defaults
USE_COMUSBBRIDGE ?= NO
USE_TXPID ?= NO
USE_I2C ?= NO
USE_ALTITUDE ?= NO
TEST_FAULTS ?= NO
USE_MAGBARO ?= NO
@ -62,11 +61,7 @@ ifeq ($(TEST_FAULTS), YES)
OPTMODULES += Fault
endif
ifeq ($(USE_MAGBARO), YES)
ifeq ($(USE_I2C), YES)
OPTMODULES += Extensions/MagBaro
else
$(error "MagBaro module (USE_MAGBARO=YES) requires i2c (USE_I2C=YES)")
endif
endif
# List of modules to include