From 892ad62983a02e0b6f3d0c55a8f844453bd7000c Mon Sep 17 00:00:00 2001 From: SummerGift Date: Mon, 10 Dec 2018 14:06:17 +0800 Subject: [PATCH] [bsp][stm32] optimize flash driver config --- bsp/stm32/libraries/HAL_Drivers/SConscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/SConscript b/bsp/stm32/libraries/HAL_Drivers/SConscript index cc92c05f0c..c37704bb80 100644 --- a/bsp/stm32/libraries/HAL_Drivers/SConscript +++ b/bsp/stm32/libraries/HAL_Drivers/SConscript @@ -57,7 +57,9 @@ src += ['drv_common.c'] path = [cwd] path += [cwd + '/config'] -path += [cwd + '/drv_flash'] + +if GetDepend('BSP_USING_ON_CHIP_FLASH'): + path += [cwd + '/drv_flash'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)