summaryrefslogtreecommitdiff
path: root/bsp/lpc5410x
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-01-08 21:14:23 -0500
committerMan, Jianting (Meco) <[email protected]>2023-01-08 22:52:13 -0500
commit9bc68d26a446158aad13f910fa5a2b8b09febec1 (patch)
tree638edf21bde9c986b80dd5271360b3c1e9813ef9 /bsp/lpc5410x
parentf4b285dc9cc1a2751ad090afa2f582349197d179 (diff)
format Kconfig and sconscript
Diffstat (limited to 'bsp/lpc5410x')
-rw-r--r--bsp/lpc5410x/Libraries/Device/SConscript6
-rw-r--r--bsp/lpc5410x/Libraries/lpc_chip/SConscript10
-rw-r--r--bsp/lpc5410x/SConstruct10
-rw-r--r--bsp/lpc5410x/drivers/SConscript2
4 files changed, 14 insertions, 14 deletions
diff --git a/bsp/lpc5410x/Libraries/Device/SConscript b/bsp/lpc5410x/Libraries/Device/SConscript
index ae9805c907..3b20d49038 100644
--- a/bsp/lpc5410x/Libraries/Device/SConscript
+++ b/bsp/lpc5410x/Libraries/Device/SConscript
@@ -11,12 +11,12 @@ CPPPATH = [cwd + '/../CMSIS/Include']
CPPDEFINES = ['CORE_M4']
-# add for startup script
+# add for startup script
if rtconfig.PLATFORM in ['gcc']:
- src += ['startup/gcc_startup_lpc5410x.c']
+ src += ['startup/gcc_startup_lpc5410x.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/keil_startup_lpc5410x.s']
-
+
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')
diff --git a/bsp/lpc5410x/Libraries/lpc_chip/SConscript b/bsp/lpc5410x/Libraries/lpc_chip/SConscript
index a86b71b6c7..49280b645e 100644
--- a/bsp/lpc5410x/Libraries/lpc_chip/SConscript
+++ b/bsp/lpc5410x/Libraries/lpc_chip/SConscript
@@ -60,13 +60,13 @@ chip_5410x/wwdt_5410x.c
#LIBS = [cwd + '/chip_5410x/power_lib/keil/lib_power']
#lpc_chip\chip_5410x\power_lib\lpcxpresso
-# add for startup script
+# add for startup script
if rtconfig.PLATFORM in ['gcc']:
- LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
- LIBS = ['libpower']
+ LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
+ LIBS = ['libpower']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
- LIBPATH = [cwd + '/chip_5410x/power_lib/keil']
- LIBS = ['lib_power']
+ LIBPATH = [cwd + '/chip_5410x/power_lib/keil']
+ LIBS = ['lib_power']
CPPPATH = [cwd + '/chip_common',cwd + '/chip_5410x',cwd + '/chip_5410x/config']
diff --git a/bsp/lpc5410x/SConstruct b/bsp/lpc5410x/SConstruct
index bf1d4d5d2f..807dbe45ea 100644
--- a/bsp/lpc5410x/SConstruct
+++ b/bsp/lpc5410x/SConstruct
@@ -14,11 +14,11 @@ TARGET = 'rtthread-%s.%s' % (rtconfig.BOARD_NAME, rtconfig.TARGET_EXT)
DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'],
- AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
- CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
- CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
- AR = rtconfig.AR, ARFLAGS = '-rc',
- LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
+ AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
+ CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
+ CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
+ AR = rtconfig.AR, ARFLAGS = '-rc',
+ LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT')
diff --git a/bsp/lpc5410x/drivers/SConscript b/bsp/lpc5410x/drivers/SConscript
index 5c19ced1e9..747d853899 100644
--- a/bsp/lpc5410x/drivers/SConscript
+++ b/bsp/lpc5410x/drivers/SConscript
@@ -8,7 +8,7 @@ src = Glob('*.c')
# remove no need file.
if GetDepend('RT_USING_LWIP') == False:
- SrcRemove(src, 'drv_emac.c')
+ SrcRemove(src, 'drv_emac.c')
CPPPATH = [cwd]