Add all protocol SUPPORT macros to CFLAGS to allow selective disabling
This commit is contained in:
parent
93d43d7825
commit
20a71428fc
1 changed files with 7 additions and 5 deletions
|
@ -1,17 +1,19 @@
|
||||||
# Component makefile for extras/ssd1306
|
# Component makefile for extras/ssd1306
|
||||||
|
|
||||||
# expected anyone using ssd1306 driver includes it as 'ssd1306/ssd1306.h'
|
# expected anyone using ssd1306 driver includes it as 'ssd1306/ssd1306.h'
|
||||||
INC_DIRS += $(ssd1306_ROOT)..
|
INC_DIRS += $(ROOT)extras
|
||||||
|
|
||||||
# I2C support is on by default
|
# I2C support is on by default
|
||||||
SSD1306_I2C_SUPPORT ?= 1
|
SSD1306_I2C_SUPPORT ?= 1
|
||||||
# SPI4 support is on by default
|
# SPI4 support is on by default
|
||||||
SSD1306_SPI4_SUPPORT ?= 1
|
SSD1306_SPI4_SUPPORT ?= 1
|
||||||
|
# SPI3 support is on by default
|
||||||
|
SSD1306_SPI3_SUPPORT ?= 1
|
||||||
|
|
||||||
# args for passing into compile rule generation
|
# args for passing into compile rule generation
|
||||||
ssd1306_SRC_DIR = $(ssd1306_ROOT)
|
ssd1306_SRC_DIR = $(ssd1306_ROOT)
|
||||||
|
|
||||||
ssd1306_CFLAGS = -DSSD1306_I2C_SUPPORT=${SSD1306_I2C_SUPPORT} -DSSD1306_SPI4_SUPPORT=${SSD1306_SPI4_SUPPORT} $(CFLAGS)
|
ssd1306_CFLAGS = -DSSD1306_I2C_SUPPORT=${SSD1306_I2C_SUPPORT} -DSSD1306_SPI4_SUPPORT=${SSD1306_SPI4_SUPPORT} -DSSD1306_SPI3_SUPPORT=${SSD1306_SPI3_SUPPORT} $(CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
$(eval $(call component_compile_rules,ssd1306))
|
$(eval $(call component_compile_rules,ssd1306))
|
Loading…
Reference in a new issue