summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluo jiao <[email protected]>2018-03-11 13:39:31 +0800
committerluo jiao <[email protected]>2018-03-11 13:40:16 +0800
commit1afb706c4d46b56ad63d78bc26f4f0d007d0643d (patch)
treed6e06b2def3e7b31839d73788c94be6f6efff7b9
parent59f05f68f2b1dd8839171db08a9a4a57c0db24b4 (diff)
bsp/stm32f429-apollo:fix drv_i2c.c scons build error
Signed-off-by: luo jiao <[email protected]>
-rw-r--r--bsp/stm32f429-apollo/drivers/SConscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/bsp/stm32f429-apollo/drivers/SConscript b/bsp/stm32f429-apollo/drivers/SConscript
index a6dabf0dee..f41b8a0957 100644
--- a/bsp/stm32f429-apollo/drivers/SConscript
+++ b/bsp/stm32f429-apollo/drivers/SConscript
@@ -21,7 +21,11 @@ if GetDepend('RT_USING_MTD_NAND'):
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
- src += ['drv_eth.c', 'drv_i2c.c', 'drv_pcf8574.c']
+ src += ['drv_eth.c', 'drv_pcf8574.c']
+
+# add i2c drivers.
+if GetDepend(['RT_USING_I2C']) or GetDepend('RT_USING_LWIP'):
+ src += ['drv_i2c.c']
# add gpio drivers.
if GetDepend('RT_USING_PIN'):
@@ -38,10 +42,6 @@ if GetDepend('RT_USING_SFUD'):
# add lcd drivers.
if GetDepend('PKG_USING_GUIENGINE'):
src += ['drv_lcd.c']
-
-# add i2c drivers.
-if GetDepend(['RT_USING_I2C']):
- src += ['drv_i2c.c']
CPPPATH = [cwd]