summaryrefslogtreecommitdiff
path: root/bsp/simulator
diff options
context:
space:
mode:
authorprife <[email protected]>2013-03-02 18:39:05 +0800
committerprife <[email protected]>2013-03-02 18:39:05 +0800
commit2b0ebebcc23808e7ecbe6c6f27982f4651298846 (patch)
tree7be09ae411b12ce251a5f023935c5b971aa9b41e /bsp/simulator
parentc6ba8eac62793868effcfb8ef888882dca2a3be3 (diff)
simulator: update comments,add 'RTT_IN_MODULE' macro in testdll\SConstruct
Diffstat (limited to 'bsp/simulator')
-rwxr-xr-xbsp/simulator/rtconfig.py6
-rw-r--r--bsp/simulator/testdll/SConstruct3
2 files changed, 6 insertions, 3 deletions
diff --git a/bsp/simulator/rtconfig.py b/bsp/simulator/rtconfig.py
index 2b396c5455..7a42bddbcf 100755
--- a/bsp/simulator/rtconfig.py
+++ b/bsp/simulator/rtconfig.py
@@ -1,7 +1,9 @@
# toolchains options
ARCH='sim'
-#CROSS_TOOL='msvc' or 'gcc' or 'mingw' (mingw is not supported yet!)
-CROSS_TOOL='mingw'
+#CROSS_TOOL='msvc' or 'gcc' or 'mingw'
+#'msvc' and 'mingw' are both for windows
+# 'gcc' is for linux
+CROSS_TOOL='msvc'
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path
diff --git a/bsp/simulator/testdll/SConstruct b/bsp/simulator/testdll/SConstruct
index 3324f888f7..690df89ce8 100644
--- a/bsp/simulator/testdll/SConstruct
+++ b/bsp/simulator/testdll/SConstruct
@@ -38,7 +38,7 @@ AddOption('--type',
help='installation prefix')
app = GetOption('app')
-env = Environment()
+env = Environment(TARGET_ARCH='x86')
CPPPATH = [
RTT_ROOT + '/include',
RTT_ROOT + '/bsp/' + rtconfig.BSP,
@@ -70,6 +70,7 @@ env.Append(CCFLAGS=rtconfig.CFLAGS)
env.Append(LINKFLAGS=rtconfig.LFLAGS)
env.Append(CPPPATH=CPPPATH)
env.Append(LIBS='rtthread', LIBPATH='../')
+env.Append(CPPDEFINES=['RTT_IN_MODULE'])
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
PrepareModuleBuilding(env, RTT_ROOT)