diff options
| author | GuEe-GUI <[email protected]> | 2025-12-02 14:30:30 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-02 21:37:42 +0800 |
| commit | d79475e02cdc8a4f3aa75c07b3945af7da8e62c4 (patch) | |
| tree | 46da4e8ba2a0707f1624a555e88cfd64fb0fa245 | |
| parent | 9b02fdc30a1626bd3d6ded2eb95b189dcfafcbc8 (diff) | |
[DM][SPI] Support SFUD for DM
DM need > c99
Signed-off-by: GuEe-GUI <[email protected]>
| -rw-r--r-- | components/drivers/spi/SConscript | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index df0ffb7141..94c78456dc 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -31,10 +31,11 @@ if GetDepend('RT_USING_SFUD'): if GetDepend('RT_SFUD_USING_SFDP'): src_device += ['sfud/src/sfud_sfdp.c'] - if rtconfig.PLATFORM in GetGCCLikePLATFORM(): - LOCAL_CFLAGS += ' -std=c99' - elif rtconfig.PLATFORM in ['armcc']: - LOCAL_CFLAGS += ' --c99' + if not GetDepend('RT_USING_DM'): + if rtconfig.PLATFORM in GetGCCLikePLATFORM(): + LOCAL_CFLAGS += ' -std=c99' + elif rtconfig.PLATFORM in ['armcc']: + LOCAL_CFLAGS += ' --c99' if GetDepend('RT_USING_DM'): src += ['dev_spi_dm.c', 'dev_spi_bus.c'] |
