mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
[conf] only error on unconfigured x_I2C_DEV if TARGET is ap
This commit is contained in:
@@ -59,9 +59,11 @@ else ifeq ($(ARCH), stm32)
|
|||||||
DROTEK_2_I2C_DEV ?= i2c2
|
DROTEK_2_I2C_DEV ?= i2c2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET), ap)
|
||||||
ifndef DROTEK_2_I2C_DEV
|
ifndef DROTEK_2_I2C_DEV
|
||||||
$(error Error: DROTEK_2_I2C_DEV not configured!)
|
$(error Error: DROTEK_2_I2C_DEV not configured!)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# convert i2cx to upper/lower case
|
# convert i2cx to upper/lower case
|
||||||
DROTEK_2_I2C_DEV_UPPER=$(shell echo $(DROTEK_2_I2C_DEV) | tr a-z A-Z)
|
DROTEK_2_I2C_DEV_UPPER=$(shell echo $(DROTEK_2_I2C_DEV) | tr a-z A-Z)
|
||||||
|
|||||||
@@ -28,9 +28,11 @@ else ifeq ($(ARCH), stm32)
|
|||||||
GL1_I2C_DEV ?= i2c2
|
GL1_I2C_DEV ?= i2c2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET), ap)
|
||||||
ifndef GL1_I2C_DEV
|
ifndef GL1_I2C_DEV
|
||||||
$(error Error: GL1_I2C_DEV not configured!)
|
$(error Error: GL1_I2C_DEV not configured!)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# convert i2cx to upper/lower case
|
# convert i2cx to upper/lower case
|
||||||
GL1_I2C_DEV_UPPER=$(shell echo $(GL1_I2C_DEV) | tr a-z A-Z)
|
GL1_I2C_DEV_UPPER=$(shell echo $(GL1_I2C_DEV) | tr a-z A-Z)
|
||||||
|
|||||||
Reference in New Issue
Block a user