当前位置:网站首页>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 .
边栏推荐
- PS tips - draw green earth with a brush
- Troubleshooting method of CPU surge
- 链表有环,快慢指针走3步可以吗
- Tensor ellipsis (three points) slice
- Awvs batch operation script
- Introduction to opengl4.0 tutorial computing shaders
- C language to implement a password manager (under update)
- Zzuli:1056 lucky numbers
- 牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
猜你喜欢
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
链表有环,快慢指针走3步可以吗
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
cpu飙升排查方法
[graphics] adaptive shadow map
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
远程服务器后台挂起 nohup
什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
QT - draw something else
Influxdb2 sources add data sources
随机推荐
TPS61170QDRVRQ1
B2020 points candy
. Net six design principles personal vernacular understanding, please correct if there is any error
NOI OPENJUDGE 1.4(15)
B2020 分糖果
第04章_逻辑架构
C language memory function
【可能是全中文网最全】pushgateway入门笔记
Zzuli:1056 lucky numbers
Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
Tencent internship interview sorting
Yolov5 advanced 8 format conversion between high and low versions
Awvs batch operation script
Implement Gobang with C language
Zzuli:1059 highest score
To improve efficiency or increase costs, how should developers understand pair programming?
Simulation of LS -al command in C language
C language to implement a password manager (under update)
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer