Skip to content

Commit 39224e4

Browse files
committed
fixed loongson bsp compile flags
1 parent c66314a commit 39224e4

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

bsp/ls1bdev/SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
1111
from building import *
1212

1313
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
14-
rtconfig.AFLAGS += ' -I' + str('.') + ' -I ' + RTT_ROOT + '/libcpu/mips/common/'
1514

1615
DefaultEnvironment(tools=[])
1716
env = Environment(tools = ['mingw'],
@@ -20,6 +19,7 @@ env = Environment(tools = ['mingw'],
2019
AR = rtconfig.AR, ARFLAGS = '-rc',
2120
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
2221
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
22+
env['ASCOM'] = env['ASPPCOM']
2323

2424
Export('RTT_ROOT')
2525
Export('rtconfig')

bsp/ls1cdev/SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ from building import *
1212

1313
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
1414

15-
rtconfig.AFLAGS += ' -I' + str('.') + ' -I ' + RTT_ROOT + '/libcpu/mips/gs232/'+ ' -I ' + RTT_ROOT + '/libcpu/mips/common/'
1615

1716
DefaultEnvironment(tools=[])
1817
env = Environment(tools = ['mingw'],
@@ -21,6 +20,7 @@ env = Environment(tools = ['mingw'],
2120
AR = rtconfig.AR, ARFLAGS = '-rc',
2221
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
2322
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
23+
env['ASCOM'] = env['ASPPCOM']
2424

2525
Export('RTT_ROOT')
2626
Export('rtconfig')

bsp/ls2kdev/SConstruct

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import sys
33
import rtconfig
4-
import pdb
54

65
from rtconfig import RTT_ROOT
76

@@ -10,9 +9,6 @@ from building import *
109

1110
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
1211

13-
#rtconfig.AFLAGS += ' -I' + str(Dir('#')) + ' -I ' + RTT_ROOT + '/libcpu/mips/common/'
14-
rtconfig.AFLAGS += ' -I' + str('.') + ' -I ' + RTT_ROOT + '/libcpu/mips/common/'
15-
1612
DefaultEnvironment(tools=[])
1713
env = Environment(tools = ['mingw'],
1814
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
@@ -21,6 +17,7 @@ env = Environment(tools = ['mingw'],
2117
AR = rtconfig.AR, ARFLAGS = '-rc',
2218
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
2319
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
20+
env['ASCOM'] = env['ASPPCOM']
2421

2522
Export('RTT_ROOT')
2623
Export('rtconfig')

0 commit comments

Comments
 (0)