[bsp][nxp][lpc] move lpc BSPs into nxp/lpc folders

This commit is contained in:
Meco Man 2024-03-10 15:11:54 -04:00
parent 46967ef56f
commit f71d4f33ea
1970 changed files with 112 additions and 119 deletions

View File

@ -183,18 +183,20 @@ jobs:
- RTT_BSP: "nxp_renesas"
RTT_TOOL_CHAIN: "sourcery-arm"
SUB_RTT_BSP:
- "lpc55sxx/lpc55s69_nxp_evk"
- "lpc55sxx/lpc55s28_nxp_evk"
- "lpc55sxx/lpc55s06_nxp_evk"
- "lpc55sxx/lpc55s16_nxp_evk"
- "lpc55sxx/lpc55s36_nxp_evk"
- "lpc178x"
- "lpc408x"
- "lpc1114"
- "lpc2148"
- "lpc2478"
- "lpc5410x"
- "lpc54114-lite"
- "nxp/lpc/lpc55sxx/lpc55s69_nxp_evk"
- "nxp/lpc/lpc55sxx/lpc55s28_nxp_evk"
- "nxp/lpc/lpc55sxx/lpc55s06_nxp_evk"
- "nxp/lpc/lpc55sxx/lpc55s16_nxp_evk"
- "nxp/lpc/lpc55sxx/lpc55s36_nxp_evk"
- "nxp/lpc/lpc178x"
- "nxp/lpc/lpc408x"
- "nxp/lpc/lpc1114"
- "nxp/lpc/lpc2148"
- "nxp/lpc/lpc2478"
- "nxp/lpc/lpc5410x"
- "nxp/lpc/lpc54114-lite"
- "nxp/lpc/lpc176x"
#- "nxp/lpc/lpc43xx/M4"
- "imx6sx/cortex-a9"
- "imxrt/imxrt1052-atk-commander"
- "imxrt/imxrt1052-fire-pro"
@ -204,9 +206,7 @@ jobs:
- "imxrt/imxrt1064-nxp-evk"
- "imxrt/imxrt1021-nxp-evk"
- "frdm-k64f"
- "lpc176x"
- "xplorer4330/M4"
#- "lpc43xx/M4"
- "nxp/mcx/mcxn/frdm-mcxn947"
- "nxp/mcx/mcxa/frdm-mcxa153"
- "renesas/ebf_qi_min_6m5"

View File

@ -1,67 +0,0 @@
import os
import sys
import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
if rtconfig.PLATFORM == 'armcc':
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,
# overwrite cflags, because cflags has '--C99'
CXXCOM = '$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES')
else:
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,
CXXCOM = '$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES')
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if rtconfig.PLATFORM in ['iccarm']:
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = [''])
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
Export('RTT_ROOT')
Export('rtconfig')
SDK_ROOT = os.path.abspath('./')
if os.path.exists(SDK_ROOT + '/Libraries'):
libraries_path_prefix = SDK_ROOT + '/Libraries'
else:
libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/Libraries'
SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript')))
# include cmsis
objs.extend(SConscript(os.path.join(libraries_path_prefix, rtconfig.BSP_LIBRARY_TYPE, 'SConscript')))
# make a building
DoBuilding(TARGET, objs)

View File

@ -8,10 +8,7 @@ config BSP_DIR
config RTT_DIR
string
option env="RTT_ROOT"
default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread"
default "../../../.."
config PKGS_DIR
string

View File

@ -8,7 +8,7 @@ config BSP_DIR
config RTT_DIR
string
option env="RTT_ROOT"
default "../.."
default "../../../.."
config PKGS_DIR
string

View File

@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../..')
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *

Some files were not shown because too many files have changed in this diff Show More