当前位置:网站首页>Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
2022-07-03 15:04:00 【trium_ KW】
Although in most cases, it is necessary to write VxWorks Embedded application code is often used Tornado Programming environment , But sometimes you may need to do simple things on the command line Tornado engineering management . This tutorial teaches how to migrate simple engineering management to Tornado External and implemented on the command line ( Although it is impossible to experience Tornado Some convenient functions under ).
0. Get ready Tornado Software . First of all, there must be Tornado A complete set of software . My is Tornado2.2.Tornado Whether it has been cracked or installed is not a big problem , As long as you have its installation directory .
1. Configuration environment .Tornado Various environment variables have been configured in the environment , So we should pay attention to ordinary cmd achieve Tornado Basic functions of , You also need to manually configure the corresponding environment .a) New environment variable WIND_BASE, Its value is Tornado Installation directory ( For example, I Tornado Installed in the D disc Tornado2.2 Under the table of contents , that WIND_BASE The value is D:\Tornado2.2;b) New environment variable WIND_HOST_TYPE, If it is Windows user , Then you need to set its value to x86-win32, If not Windows user , Then I'm not very clear with my knowledge ;c) take %WIND_BASE%\host\%WIND_HOST_TYPE%\bin Join in PATH environment variable ;d) New environment variable DIABLIB, Its value is %WIND_BASE%/host/diab( Pay attention to the direction of the slash ). Note that these variables must really be added to the system environment variables, not just on the command line SET WIND_BASE=D:\Tornado2.2 wait .
2. To configure diab and gnu Tool chain . stay cmd Execute the following two batch commands :
wtxtcl.exe %WIND_BASE%/host/resource/tcl/app-config/Project/gnuInfoGen.tcl diab
wtxtcl.exe %WIND_BASE%/host/resource/tcl/app-config/Project/gnuInfoGen.tcl gnu
3. Basic engineering management methods ( It is suggested to write every content below TCL Script file for easy calling )
a) Build a new project ( In this case BSP( Board level support package ) Samsung embedded development board S3c2410BP For example )
# Load the process library file cmpScriptLib.tcl, It defines various methods required for project management
source [wtxPath host resource tcl app-config Project]cmpScriptLib.tcl
# Try creating a named "Project0" Startable project , Be careful Project0 It must not be an existing project
# The new project is located in %WIND_BASE%\target\proj Under the table of contents , This directory consists of commands that can accept any number of parameters wtxPath Appoint
# S3c2410BP yes BSP name ,BSP It should be placed in %WIND_BASE%\target\config Under the table of contents
cmpProjCreate S3c2410BP [wtxPath target proj Project0]Project0.wpj
cmpProjClose
b) Delete project ( To delete the project "Project0" For example )
source [wtxPath host resource tcl app-config Project]cmpScriptLib.tcl
cmpProjOpen [wtxPath target proj Project0]Project0.wpj
cmpProjDelete
c) Xiang Engineering ( With Project0 For example ) Add files to ( With D:\my_directory\my_source_file.c For example )
source [wtxPath host resource tcl app-config Project]cmpScriptLib.tcl
cmpProjOpen [wtxPath target proj Project0]Project0.wpj
cmpFileAdd d:/my_directory/my_source_file.c
cmpProjClose
d) From Engineering ( With Project0 For example ) Remove files from ( With D:\my_directory\my_source_file.c For example )
source [wtxPath host resource tcl app-config Project]cmpScriptLib.tcl
cmpProjOpen [wtxPath target proj Project0]Project0.wpj
cmpFileRemove d:/my_directory/my_source_file.c
cmpProjClose
e) Get the list of files included in the project ( One file name per line , With Project0 For example )
source [wtxPath host resource tcl app-config Project]cmpScriptLib.tcl
set projId [cmpProjOpen [wtxPath target proj Project0]Project0.wpj]
set file_list [prjFileListGet $projId]
cmpProjClose
foreach item $file_list {
puts $item
}
f) Recompile project ( With Project0 For example )
source [wtxPath host resource tcl app-config Project]cmpScriptLib.tcl
cmpProjOpen [wtxPath target proj Project0]Project0.wpj
cmpBuild clean
cmpBuild
cmpProjClose
This concludes the tutorial , If yes TCL The language is not very familiar , See tool command language (TCL) Related tutorials for .
边栏推荐
- Tencent internship interview sorting
- [attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
- B2020 points candy
- C # realizes the login interface, and the password asterisk is displayed (hide the input password)
- Vs+qt application development, set software icon icon
- [ue4] HISM large scale vegetation rendering solution
- NOI OPENJUDGE 1.5(23)
- Devaxpress: range selection control rangecontrol uses
- 【微信小程序】WXSS 模板样式
- Tensor ellipsis (three points) slice
猜你喜欢
5.2-5.3
Yolov5系列(一)——网络可视化工具netron
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Use of form text box (I) select text
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
Bucket sorting in C language
Vs+qt multithreading implementation -- run and movetothread
My QT learning path -- how qdatetimeedit is empty
[engine development] rendering architecture and advanced graphics programming
Devaxpress: range selection control rangecontrol uses
随机推荐
[graphics] adaptive shadow map
el-switch 赋值后状态不变化
TPS61170QDRVRQ1
4-20-4-23 concurrent server, TCP state transition;
[pytorch learning notes] transforms
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
C language fcntl function
B2020 points candy
Unity hierarchical bounding box AABB tree
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
Pytoch deep learning and target detection practice notes
How to color ordinary landscape photos, PS tutorial
牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
Troubleshooting method of CPU surge
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Introduction to opengl4.0 tutorial computing shaders
Talking about part of data storage in C language
Niuke bm83 string deformation (case conversion, string inversion, string replacement)
Class part2
Besides lying flat, what else can a 27 year old do in life?