- Timestamp:
- 2010-01-06T20:33:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 385a3d6
- Parents:
- 4da7d79 (diff), 23efd30 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tools
- Files:
-
- 3 added
- 2 edited
- 2 moved
-
checkers/jobfile.py (added)
-
checkers/stanse.py (added)
-
checkers/stanse/ThreadChecker.xml (moved) (moved from contrib/stanse/ThreadChecker.xml )
-
checkers/vcc.py (added)
-
jobfile.py (modified) (3 diffs)
-
toolchain.sh (moved) (moved from contrib/toolchain.sh ) (1 diff)
-
xtui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/jobfile.py
r4da7d79 r6ef2c11 28 28 # 29 29 """ 30 Add a source/object file pair to a Stansejobfile30 Add a source/object file pair to a checker jobfile 31 31 """ 32 32 … … 37 37 def usage(prname): 38 38 "Print usage syntax" 39 print prname + " <JOBFILE> <SOURCE> < OBJECT> [OPTIONS ...]"39 print prname + " <JOBFILE> <SOURCE> <TARGET> <TOOL> <CATEGORY> [OPTIONS ...]" 40 40 41 41 def main(): 42 if (len(sys.argv) < 4):42 if (len(sys.argv) < 6): 43 43 usage(sys.argv[0]) 44 44 return … … 46 46 jobfname = sys.argv[1] 47 47 srcfname = sys.argv[2] 48 objfname = sys.argv[3] 48 tgtfname = sys.argv[3] 49 toolname = sys.argv[4] 50 category = sys.argv[5] 49 51 cwd = os.getcwd() 50 options = " ".join(sys.argv[ 4:])52 options = " ".join(sys.argv[6:]) 51 53 52 54 jobfile = file(jobfname, "a") 53 55 fcntl.lockf(jobfile, fcntl.LOCK_EX) 54 jobfile.write("{%s},{%s},{%s},{%s} \n" % (srcfname, objfname, cwd, options))56 jobfile.write("{%s},{%s},{%s},{%s},{%s},{%s}\n" % (srcfname, tgtfname, toolname, category, cwd, options)) 55 57 fcntl.lockf(jobfile, fcntl.LOCK_UN) 56 58 jobfile.close() -
tools/toolchain.sh
r4da7d79 r6ef2c11 1 1 #!/bin/bash 2 2 3 # Cross-compiler toolchain build script 4 # by Martin Decky <martin@decky.cz> 5 # 6 # GPL'ed, copyleft 3 # 4 # Copyright (c) 2009 Martin Decky 5 # All rights reserved. 6 # 7 # Redistribution and use in source and binary forms, with or without 8 # modification, are permitted provided that the following conditions 9 # are met: 10 # 11 # - Redistributions of source code must retain the above copyright 12 # notice, this list of conditions and the following disclaimer. 13 # - Redistributions in binary form must reproduce the above copyright 14 # notice, this list of conditions and the following disclaimer in the 15 # documentation and/or other materials provided with the distribution. 16 # - The name of the author may not be used to endorse or promote products 17 # derived from this software without specific prior written permission. 18 # 19 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 7 29 # 8 30 -
tools/xtui.py
r4da7d79 r6ef2c11 213 213 sys.stdout.write("Selection[%s]: " % str(position + 1)) 214 214 else: 215 sys.stdout.write("Selection: ") 215 if (cnt > 0): 216 sys.stdout.write("Selection[1]: ") 217 else: 218 sys.stdout.write("Selection[0]: ") 216 219 inp = sys.stdin.readline() 217 220 … … 222 225 if (position != None): 223 226 return (None, position) 224 continue 227 else: 228 if (cnt > 0): 229 inp = '1' 230 else: 231 inp = '0' 225 232 226 233 if (inp.strip() == 'q'):
Note:
See TracChangeset
for help on using the changeset viewer.
