Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/action_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Install Tools
shell: bash
run: |
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bsp_buildings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Install Tools
shell: bash
run: |
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
pip install -r tools/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compile_bsp_with_drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install Tools
shell: bash
run: |
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
git config --global http.postBuffer 524288000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_bsp_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
git config --global http.postBuffer 524288000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Install Tools
shell: bash
run: |
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
pip install -r tools/requirements.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
git config --global http.postBuffer 524288000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_trigger_scons_fail_bsp_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
git config --global http.postBuffer 524288000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_trigger_update_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
wget https://raw.githubusercontent.com/CYFS3/env/feat_env/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
git config --global http.postBuffer 524288000
Expand Down
2 changes: 1 addition & 1 deletion bsp/ESP/ESP32_C3/SConstruct
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sys
import rtconfig
from esptool.bin_image import ELFFile, ImageSegment, LoadFirmwareImage
from esptool.targets import CHIP_DEFS, CHIP_LIST, ROM_LIST

Expand Down Expand Up @@ -40,6 +39,7 @@ else:
RTT_ROOT = os.path.join(os.getcwd(), '..', '..', '..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
import rtconfig
from building import *

TARGET = 'rtthread.' + rtconfig.TARGET_EXT
Expand Down
13 changes: 10 additions & 3 deletions bsp/ESP/ESP32_C3/rtconfig.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import os
import sys

BSP_ROOT = os.path.dirname(os.path.abspath(__file__))
RTT_ROOT = os.getenv('RTT_ROOT') or os.path.normpath(os.path.join(BSP_ROOT, '..', '..', '..'))
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from env_package import find_package_path

# toolchains options
ARCH ='risc-v'
Expand All @@ -8,7 +14,7 @@
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')

if CROSS_TOOL == 'gcc':
if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EXEC_PATH = r'~/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin'
else:
Expand Down Expand Up @@ -38,8 +44,9 @@
DEVICE = ' -nostartfiles -march=rv32imc --specs=nosys.specs -fasynchronous-unwind-tables '
CFLAGS = DEVICE + '-include ../../components/libc/compilers/common/include/sys/ioctl.h -gdwarf-4 -ggdb -Og '
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
LFLAGS = DEVICE + ' -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32C3=0 -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T idf_port/ld/memory.ld -T idf_port/ld/sections.ld -T packages/ESP-IDF-latest/components/esp_rom/esp32c3/ld/esp32c3.rom.ld -T packages/ESP-IDF-latest/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld -T packages/ESP-IDF-latest/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld -T packages/ESP-IDF-latest/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld -T packages/ESP-IDF-latest/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld -T packages/ESP-IDF-latest/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld -T packages/ESP-IDF-latest/components/soc/esp32c3/ld/esp32c3.peripherals.ld -Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting -Wl,--wrap=__register_frame_info_bases -Wl,--wrap=__register_frame_info -Wl,--wrap=__register_frame -Wl,--wrap=__register_frame_info_table_bases -Wl,--wrap=__register_frame_info_table -Wl,--wrap=__register_frame_table -Wl,--wrap=__deregister_frame_info_bases -Wl,--wrap=__deregister_frame_info -Wl,--wrap=_Unwind_Find_FDE -Wl,--wrap=_Unwind_GetGR -Wl,--wrap=_Unwind_GetCFA -Wl,--wrap=_Unwind_GetIP -Wl,--wrap=_Unwind_GetIPInfo -Wl,--wrap=_Unwind_GetRegionStart -Wl,--wrap=_Unwind_GetDataRelBase -Wl,--wrap=_Unwind_GetTextRelBase -Wl,--wrap=_Unwind_SetIP -Wl,--wrap=_Unwind_SetGR -Wl,--wrap=_Unwind_GetLanguageSpecificData -Wl,--wrap=_Unwind_FindEnclosingFunction -Wl,--wrap=_Unwind_Resume -Wl,--wrap=_Unwind_RaiseException -Wl,--wrap=_Unwind_DeleteException -Wl,--wrap=_Unwind_ForcedUnwind -Wl,--wrap=_Unwind_Resume_or_Rethrow -Wl,--wrap=_Unwind_Backtrace -Wl,--wrap=__cxa_call_unexpected -Wl,--eh-frame-hdr -Wl,--wrap=__gxx_personality_v0 -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32C3=0'
CXXFLAGS = CFLAGS
idf_path = find_package_path(BSP_ROOT, 'ESP-IDF-latest', relative_to=BSP_ROOT, pathsep='/')
LFLAGS = DEVICE + ' -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32C3=0 -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T idf_port/ld/memory.ld -T idf_port/ld/sections.ld -T ' + idf_path + '/components/esp_rom/esp32c3/ld/esp32c3.rom.ld -T ' + idf_path + '/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld -T ' + idf_path + '/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld -T ' + idf_path + '/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld -T ' + idf_path + '/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld -T ' + idf_path + '/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld -T ' + idf_path + '/components/soc/esp32c3/ld/esp32c3.peripherals.ld -Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting -Wl,--wrap=__register_frame_info_bases -Wl,--wrap=__register_frame_info -Wl,--wrap=__register_frame -Wl,--wrap=__register_frame_info_table_bases -Wl,--wrap=__register_frame_info_table -Wl,--wrap=__register_frame_table -Wl,--wrap=__deregister_frame_info_bases -Wl,--wrap=__deregister_frame_info -Wl,--wrap=_Unwind_Find_FDE -Wl,--wrap=_Unwind_GetGR -Wl,--wrap=_Unwind_GetCFA -Wl,--wrap=_Unwind_GetIP -Wl,--wrap=_Unwind_GetIPInfo -Wl,--wrap=_Unwind_GetRegionStart -Wl,--wrap=_Unwind_GetDataRelBase -Wl,--wrap=_Unwind_GetTextRelBase -Wl,--wrap=_Unwind_SetIP -Wl,--wrap=_Unwind_SetGR -Wl,--wrap=_Unwind_GetLanguageSpecificData -Wl,--wrap=_Unwind_FindEnclosingFunction -Wl,--wrap=_Unwind_Resume -Wl,--wrap=_Unwind_RaiseException -Wl,--wrap=_Unwind_DeleteException -Wl,--wrap=_Unwind_ForcedUnwind -Wl,--wrap=_Unwind_Resume_or_Rethrow -Wl,--wrap=_Unwind_Backtrace -Wl,--wrap=__cxa_call_unexpected -Wl,--eh-frame-hdr -Wl,--wrap=__gxx_personality_v0 -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32C3=0'
CXXFLAGS = CFLAGS

POST_ACTION = OBJCPY + ' -Oihex $TARGET rtthread.hex\n' + SIZE + ' $TARGET \n'

Expand Down
7 changes: 4 additions & 3 deletions bsp/Infineon/libraries/templates/XMC7200D/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,10 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/psoc6-cy8ckit-062-BLE/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/psoc6-cy8ckit-062-WIFI-BT/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/psoc6-cy8ckit-062S2-43012/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/psoc6-cy8ckit-062s4/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/psoc6-cy8cproto-062S3-4343W/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/psoc6-evaluationkit-062S2/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/xmc7100d-f144k4160aa/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
9 changes: 4 additions & 5 deletions bsp/Infineon/xmc7200-kit_xmc7200_evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
from env_package import find_package_root
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
Expand All @@ -36,12 +37,10 @@ Export('rtconfig')

SDK_ROOT = os.path.abspath('./')

libraries_path_prefix = SDK_ROOT

if os.path.exists(SDK_ROOT + '/packages'):
libraries_path_prefix = SDK_ROOT + '/packages'
else:
libraries_path_prefix = find_package_root(SDK_ROOT, package_prefix='Infineon_mtb-pdl-cat1')
if not libraries_path_prefix:
print("Error: Packages for HAL_Driver does not exist, pull it in ENV using `pkg --update`.")
libraries_path_prefix = os.path.join(SDK_ROOT, 'packages')

SDK_LIB = libraries_path_prefix
Export('SDK_LIB')
Expand Down
16 changes: 16 additions & 0 deletions bsp/gd32/risc-v/gd32vw553h-eval/SConscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# for module compiling
import os
import sys
Import('RTT_ROOT')
from building import *
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from env_package import find_package_path
from env_package import is_libraries_package

cwd = str(Dir('#'))

Expand All @@ -13,4 +17,16 @@ for d in list:
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))

wifi_pkg_path = find_package_path(cwd, 'gd32vw55x-wifi-latest')
if wifi_pkg_path and is_libraries_package(wifi_pkg_path) and GetDepend(['PKG_USING_GD32VW55X_WIFI']):
lwip_mem = os.path.join(RTT_ROOT, 'components', 'net', 'lwip', 'lwip-2.1.2', 'src', 'core', 'mem.c')

if os.path.isfile(lwip_mem):
objs += DefineGroup('gd32vw55x-wifi-port', [lwip_mem], depend=['PKG_USING_GD32VW55X_WIFI'],
CPPPATH=[
os.path.join(wifi_pkg_path, 'src', 'lwip', 'port'),
os.path.join(wifi_pkg_path, 'src', 'lwip', 'port', 'arch'),
os.path.join(RTT_ROOT, 'components', 'net', 'lwip', 'lwip-2.1.2', 'src', 'include')
])

Return('objs')
11 changes: 3 additions & 8 deletions bsp/gd32/risc-v/gd32vw553h-eval/SConstruct
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
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')]
import rtconfig
try:
from building import *
from env_package import packages_available
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

check_paths = [
os.path.join("packages", "gd32-riscv-series-latest")
]

need_update = not all(os.path.exists(p) for p in check_paths)
need_update = not packages_available(os.path.abspath('.'), ['gd32-riscv-series-latest'])

if need_update:
print("\n===============================================================================")
Expand Down
Loading
Loading