From e32626da305340f4c8d10d0e985af9d59896cb3b Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 24 Oct 2021 01:59:31 -0400 Subject: [PATCH] =?UTF-8?q?[stm32l475]=20=E4=BF=AE=E5=A4=8Dboard=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9sconscript=E8=84=9A=E6=9C=AC=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E7=BB=A7=E7=BB=AD=E6=89=AB=E6=8F=8F=E5=AD=90=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32l475-atk-pandora/board/SConscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bsp/stm32/stm32l475-atk-pandora/board/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/SConscript index 086974334a..0f09160a9a 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/SConscript +++ b/bsp/stm32/stm32l475-atk-pandora/board/SConscript @@ -56,4 +56,10 @@ elif rtconfig.CROSS_TOOL == 'iar': CPPDEFINES = ['STM32L475xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) +list = os.listdir(cwd) +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + group = group + SConscript(os.path.join(d, 'SConscript')) + Return('group')