2007년 3월 8일 목요일

Command line build tool for Tornado 2.0

In Tornado, a project build is done in the workspace window where a user uses mouse and keyboard to select menus and something like that. But sometimes it really bothers to build every project manually if there are a lot of projects in the workspace. This is why I made tcl script which will help to make every chores be done automatically in batch file. Following site was very useful and actually some tcl scripts are inspired from there.

http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt1.html#1.7-C

1. Preparation
copy these files to the $(TornadoRoot)/host/src/hutils/

depGen.tcl
makeGen.tcl
makeGenB.tcl
(If you have any question about depGen.tcl/makeGenB.tcl files, please send me an E-mail - djckdgus at google mail. )

2. What these files are for?

depGen.tcl : to generate dependency from the project file.
makeGen.tcl : to generate 'makefile' for the downloadable project file.
configGen.tcl : to generate vxworks component configuration from the bootable project file.
makeGenB.tcl : to generate 'makefile' for the bootable project file.


3. How to use?
3-1. Usage
wtxtcl $(TornadoRoot)/host/src/hutils/depGen.tcl [project file] [build Spec]
wtxtcl $(TornadoRoot)/host/src/hutils/makeGen.tcl [project file]
wtxtcl $(TornadoRoot)/host/src/hutils/configGen.tcl [project file]
wtxtcl $(TornadoRoot)/host/src/hutils/makeGenB.tcl [project file]

3-2. For downloadable project.

Generate 'makefile' as following sequence.
depGen.tcl
makeGen.tcl

3-3. For bootable project.

Generate 'makefile' as following sequence.
depGen.tcl
configGen.tcl
makeGenB.tcl


4. Example

4-1. For downloadable project.

wtxtcl C:/tornado/host/src/hutils/depGen.tcl Y:\Mpeg4.wpj SPARCgnu
wtxtcl C:/tornado/host/src/hutils/makeGen.tcl Y:\Mpeg4.wpj


4-2. For bootable project.

wtxtcl C:/tornado/host/src/hutils/depGen.tcl Y:\rom_MP4.wpj default
wtxtcl C:/tornado/host/src/hutils/configGen.tcl Y:\rom_MP4.wpj
wtxtcl C:/tornado/host/src/hutils/makeGenB.tcl Y:\rom_MP4.wpj

댓글 없음: