From b5d61a37b0cfd769a24c18db8ddd53340e2d7065 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Mon, 9 Oct 2017 11:38:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?sconscript=E6=96=87=E4=BB=B6=E4=BB=A5=E4=BE=BF=E4=BA=8E?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=B7=A5=E7=A8=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32f429-apollo/applications/SConscript | 14 ++++++++++++-- bsp/stm32f429-apollo/drivers/SConscript | 3 ++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bsp/stm32f429-apollo/applications/SConscript b/bsp/stm32f429-apollo/applications/SConscript index f1989bc625..d0980be7f7 100644 --- a/bsp/stm32f429-apollo/applications/SConscript +++ b/bsp/stm32f429-apollo/applications/SConscript @@ -3,9 +3,19 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +#src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] -group = DefineGroup('Applications', src, depend = ['RT_USING_GUIENGINE'], CPPPATH = CPPPATH) +src = Split(""" +application.c +startup.c +""") + +# add gpio drivers. +if GetDepend('RT_USING_GUIENGINE'): + src += ['rtgui_demo.c'] + + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/stm32f429-apollo/drivers/SConscript b/bsp/stm32f429-apollo/drivers/SConscript index 71d829e41b..9d8e32a77d 100644 --- a/bsp/stm32f429-apollo/drivers/SConscript +++ b/bsp/stm32f429-apollo/drivers/SConscript @@ -11,11 +11,12 @@ stm32f4xx_it.c usart.c drv_sdram.c drv_rtc.c -drv_sdio_sd.c drv_nand.c drv_mpu.c """) +#drv_sdio_sd.c + # add Ethernet drivers. if GetDepend('RT_USING_LWIP'): src += ['drv_eth.c', 'drv_iic.c', 'drv_pcf8574.c']