当前位置:网站首页>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 gnu3. 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 .
边栏推荐
- Rasterization: a practical implementation (2)
- High quality workplace human beings must use software to recommend, and you certainly don't know the last one
- App全局异常捕获
- [opengl] face pinching system
- [ue4] cascading shadow CSM
- Awvs batch operation script
- Zzuli:1056 lucky numbers
- 5-1 blocking / non blocking, synchronous / asynchronous
- C language memory function
- [ue4] material and shader permutation
猜你喜欢

基础SQL教程

Yolov5系列(一)——網絡可視化工具netron

The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%

PS tips - draw green earth with a brush

Implement Gobang with C language
![[ue4] Niagara's indirect draw](/img/8a/576022b5d19e1d6422ff0135c50c93.jpg)
[ue4] Niagara's indirect draw

4-33--4-35

What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding

Zero copy underlying analysis

Pytoch deep learning and target detection practice notes
随机推荐
[opengl] advanced chapter of texture - principle of flowmap
Awvs batch operation script
cpu飙升排查方法
Besides lying flat, what else can a 27 year old do in life?
牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
Yolov5进阶之九 目标追踪实例1
Série yolov5 (i) - - netron, un outil de visualisation de réseau
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Tensor ellipsis (three points) slice
Zero copy underlying analysis
Detailed explanation of four modes of distributed transaction (Seata)
Mmdetection learning rate and batch_ Size relationship
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
Yolov5进阶之七目标追踪最新环境搭建(二)
.NET六大设计原则个人白话理解,有误请大神指正
第04章_逻辑架构
Vs+qt multithreading implementation -- run and movetothread
Piwigo 2.7.1 sqli learning
Implement Gobang with C language