Skip to content

Commit 2096ff6

Browse files
committed
[bsp][esp]:fix esp32_c3 ci err
1 parent 689e268 commit 2096ff6

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎bsp/ESP/ESP32_C3/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mainmenu "RT-Thread Configuration"
22

33
BSP_DIR := .
44

5-
RTT_DIR := ../..
5+
RTT_DIR := ../../..
66

77
PKGS_DIR := packages
88

‎bsp/ESP/ESP32_C3/SConstruct‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,21 @@ def elf2image(target, source, env):
3737
if os.getenv('RTT_ROOT'):
3838
RTT_ROOT = os.getenv('RTT_ROOT')
3939
else:
40-
RTT_ROOT = os.path.join(os.getcwd(), '..', '..')
40+
RTT_ROOT = os.path.join(os.getcwd(), '..', '..', '..')
4141

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

4545
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
46+
SDK_ROOT = os.path.abspath('./')
4647

48+
if os.path.exists(SDK_ROOT + '/libraries'):
49+
libraries_path_prefix = SDK_ROOT + '/libraries'
50+
else:
51+
libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
52+
53+
SDK_LIB = libraries_path_prefix
54+
Export('SDK_LIB')
4755
DefaultEnvironment(tools=[])
4856
env = Environment(tools = ['mingw'],
4957
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
@@ -60,6 +68,7 @@ Export('rtconfig')
6068
# prepare building environment
6169
objs = PrepareBuilding(env, RTT_ROOT, remove_components = ['libc'])
6270

71+
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript')))
6372
# make a building
6473
DoBuilding(TARGET, objs)
6574

0 commit comments

Comments
 (0)