summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArda <[email protected]>2015-03-10 12:01:25 +0800
committerArda <[email protected]>2015-03-10 12:01:25 +0800
commit4a9c3fae2900da71cdf026063679d2c25f266fd7 (patch)
tree2fba8aec09a671cc36d281365351003a988eb57d /tools
parent5fe489a3949cdbb947d3c719a7ef958a37e8d826 (diff)
parent89ceb7dc27895225bc221d22c035d5cc8802a256 (diff)
Merge pull request #3 from RT-Thread/master
sync with official source
Diffstat (limited to 'tools')
-rwxr-xr-xtools/as.sh3
-rw-r--r--tools/building.py24
-rw-r--r--tools/codeblocks.py24
-rw-r--r--tools/cscope.py24
-rw-r--r--tools/iar.py24
-rw-r--r--tools/keil.py24
-rw-r--r--tools/sconsui.py24
-rw-r--r--tools/tools/clang-analyze.py2
-rw-r--r--tools/ua.py35
-rw-r--r--tools/utils.py24
-rw-r--r--tools/vs.py24
-rw-r--r--tools/vs2012.py24
-rw-r--r--tools/win32spawn.py24
-rwxr-xr-xtools/wizard.py24
14 files changed, 301 insertions, 3 deletions
diff --git a/tools/as.sh b/tools/as.sh
new file mode 100755
index 0000000000..d4f30f418c
--- /dev/null
+++ b/tools/as.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+astyle --style=allman --indent=spaces=4 --pad-oper --pad-header --unpad-paren --suffix=none --align-pointer=name --lineend=linux --convert-tabs --verbose $1
diff --git a/tools/building.py b/tools/building.py
index f12452ed7d..cafad2047a 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -1,3 +1,27 @@
+#
+# File : building.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
import string
diff --git a/tools/codeblocks.py b/tools/codeblocks.py
index 78f9629cbb..cb07956e73 100644
--- a/tools/codeblocks.py
+++ b/tools/codeblocks.py
@@ -1,3 +1,27 @@
+#
+# File : codeblocks.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
import string
diff --git a/tools/cscope.py b/tools/cscope.py
index 18568b4c35..daeda52f9d 100644
--- a/tools/cscope.py
+++ b/tools/cscope.py
@@ -1,3 +1,27 @@
+#
+# File : cscope.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
def _get_src(project):
diff --git a/tools/iar.py b/tools/iar.py
index 40b8408971..fda3fd8768 100644
--- a/tools/iar.py
+++ b/tools/iar.py
@@ -1,3 +1,27 @@
+#
+# File : iar.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
import string
diff --git a/tools/keil.py b/tools/keil.py
index 8f8b926804..9d6b14b81a 100644
--- a/tools/keil.py
+++ b/tools/keil.py
@@ -1,3 +1,27 @@
+#
+# File : keil.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
import string
diff --git a/tools/sconsui.py b/tools/sconsui.py
index eddccb49f4..3542c36278 100644
--- a/tools/sconsui.py
+++ b/tools/sconsui.py
@@ -1,6 +1,30 @@
#! /usr/bin/env python
#coding=utf-8
+#
+# File : sconsui.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import sys
py2 = py30 = py31 = False
diff --git a/tools/tools/clang-analyze.py b/tools/tools/clang-analyze.py
index a966a7b56a..e73f30ca31 100644
--- a/tools/tools/clang-analyze.py
+++ b/tools/tools/clang-analyze.py
@@ -33,7 +33,7 @@ def generate(env):
env['AR'] = 'true'
env['LINK'] = 'true'
- env['CFLAGS'] = ['-fsyntax-only', '-Wall', '-Wno-invalid-source-encoding']
+ env['CFLAGS'] = ['-fsyntax-only', '-Wall', '-Wno-invalid-source-encoding', '-m32']
env['LINKFLAGS'] = '-Wl,--gc-sections'
env['ARFLAGS'] = '-rc'
diff --git a/tools/ua.py b/tools/ua.py
index ac3ea9061c..31d2641031 100644
--- a/tools/ua.py
+++ b/tools/ua.py
@@ -1,3 +1,27 @@
+#
+# File : ua.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
from utils import _make_path_relative
@@ -59,6 +83,10 @@ def PrepareUA(project, RTT_ROOT, BSP_ROOT):
ua.write('\t\t%s\n' % path)
ua.write('\t]\n\n')
ua.write('\treturn CPPPATH\n\n')
+ else:
+ ua.write('def GetCPPPATH(BSP_ROOT, RTT_ROOT):\n')
+ ua.write('\tCPPPATH=[]\n\n')
+ ua.write('\treturn CPPPATH\n\n')
if len(CPPDEFINES):
CPPDEFINES = [i for i in set(CPPDEFINES)]
@@ -66,5 +94,8 @@ def PrepareUA(project, RTT_ROOT, BSP_ROOT):
ua.write('def GetCPPDEFINES():\n')
ua.write('\tCPPDEFINES=%s\n' % str(CPPDEFINES))
ua.write('\treturn CPPDEFINES\n\n')
-
- print CPPDEFINES
+
+ else:
+ ua.write('def GetCPPDEFINES():\n')
+ ua.write('\tCPPDEFINES=""\n\n')
+ ua.write('\treturn CPPDEFINES\n\n')
diff --git a/tools/utils.py b/tools/utils.py
index d1b0944939..0fa8cc742e 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -1,3 +1,27 @@
+#
+# File : utils.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import sys
import os
diff --git a/tools/vs.py b/tools/vs.py
index 1dce0ddaa7..bd1c7a4b24 100644
--- a/tools/vs.py
+++ b/tools/vs.py
@@ -1,3 +1,27 @@
+#
+# File : vs.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
import string
diff --git a/tools/vs2012.py b/tools/vs2012.py
index 3e751e940e..14da3dcace 100644
--- a/tools/vs2012.py
+++ b/tools/vs2012.py
@@ -1,3 +1,27 @@
+#
+# File : vs2012.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import sys
import string
diff --git a/tools/win32spawn.py b/tools/win32spawn.py
index 8adc64306b..9b878bf69f 100644
--- a/tools/win32spawn.py
+++ b/tools/win32spawn.py
@@ -1,3 +1,27 @@
+#
+# File : win32spawn.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
import os
import threading
import Queue
diff --git a/tools/wizard.py b/tools/wizard.py
index 4b2186fadb..41e90775d8 100755
--- a/tools/wizard.py
+++ b/tools/wizard.py
@@ -1,6 +1,30 @@
#! /usr/bin/env python
#coding=utf-8
+#
+# File : wizard.py
+# This file is part of RT-Thread RTOS
+# COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Change Logs:
+# Date Author Notes
+# 2015-01-20 Bernard Add copyright information
+#
+
"""
wizard.py - a script to generate SConscript in RT-Thread RTOS.