当前位置:网站首页>Pupanvr create project and management script (2)
Pupanvr create project and management script (2)
2022-06-12 04:56:00 【hi_ LeTian】
Introduce
PUPANVR Is an open source embedded system NVR System , Designed to create a multi platform , Easy to use , The stability of the NVR System .
NVR Project description
Configuration of the project , Compilation is a reference Live555 Written in an open source way , It is mainly reflected in the root directory config Folder . But some scripts are from other chip manufacturers BSP You can take it in , For example, some scripts in Hisilicon security chip . Pay attention to the environment bash Used for debugging , Other environments have not been tested and used .
Purpose of the project
Implement different hardware in the same project , chip , Product function , Try to maintain a set of code .
Directory description
├── app Main application source code directory
├── config Product configuration catalog of different models
├── doc Document directory
├── hardware Some documents corresponding to different hardware
├── product Some documents corresponding to different products
└── tool Some tools will be packed when packaging , Put it here
Compile the way
1. For different products , For example, the hardware is different or the business is different , stay config Write a configuration file in the directory ; 2. Execute in the project directory ./config/genMakefiles P30 (P30 Is the corresponding product configuration file name ,config Under the table of contents ), This step will generate buildout Catalog , And generate... In the directory Makefile; 3. Execute directly under the project directory make app Compile application ;
stay buildout In the directory Makefile How is it generated , Please check out config Inside genMakefiles Related scripts .
In the past product development practice , Will face different hardware , Different product definitions , Function and other changes . In the project directory, a hardware The catalog of , Use this directory to isolate hardware related differences between different products .
stay product Directory , This directory can be used to isolate the differences between different products ,
also tool The subdirectories of the directory are used to distinguish and place files by chip , It is also convenient to distinguish different products , Different chip hardware , There may be some duplicate files .
app The directory stores the application engineering code , Use CMake To manage code scripts .
Product configuration example
Such as config In the directory P30 file , Content :
# Define the cross compilation tool chain
export PROJECT_CROSS_COMPILE=arm-hisiv600-linux
# Define the chip model
export DEV_CHIP=hi3536c
export DEV_OS=LINUX
export DEV_SDK=hi3536c
# Define the product model
export PRODUCT_SCRIPT=normal
# Product model
export PRODUCT_MODEL=P30
export PRODUCT_BOARD=P30
export PRODUCT_MODEL_NUMBER=PUPANVR
export PROJECT_CFLAGS=""
export PROJECT_CPPFLAGS=""Tool chains are defined respectively , Chip model , Product model , Hardware board end model , These macros will be imported into a header file through scripts , These macros can also be used in applications to distinguish different products !
边栏推荐
- LabVIEW about TDMS and Binary Storage Speed
- [issue 31] 360 background development practice experience - two rounds of technical aspects
- 2022 "college entrance examination memory" has been packaged, please check!
- 加速训练之并行化 tf.data.Dataset 生成器
- Musk promotes the development of fascinating new products partners remind important questions
- Chapter 1
- JS to determine whether it is the first time to browse the web page
- Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days
- The third "World War" - chip defense, smokeless battlefield!
- Daily practice (28): balance binary tree
猜你喜欢

Day17 array features array boundary array application traversal array multidimensional array creation and traversal arrays operation array bubble sort

Accumulated temperature spatial distribution data, temperature distribution data, sunshine data, rainfall distribution, solar radiation data, surface runoff data, land use data, NPP data, NDVI data

According to aiqicha, keep went public in Hong Kong and hit the "first share of online fitness"

Sentinel-2 data introduction and download

InnoDB data storage structure – MySQL

Ecosystem type distribution data, land use data, vegetation type distribution and nature reserve distribution data

Simulation of array implementation stack

Spatial distribution data of national multi-year average precipitation 1951-2021, temperature distribution data, evapotranspiration data, evaporation data, solar radiation data, sunshine data and wind

Yolo opencv scale identification scale reading identification water gauge identification water level identification source code

Soil type, soil texture, soil nutrient and change data, soil organic matter, soil pH, soil nitrogen, phosphorus and potassium
随机推荐
Kwai opens a milestone activity for fans to record every achievement moment for creators
L1-066 cat is liquid (5 points)
2022“高考记忆” 已打包完成,请查收!
How to construct a search string?
How to deploy dolphin scheduler Apache dolphin scheduler 1.2.0 in cdh5.16.2
asp. Net core theme Middleware
Ubunt 20.04 uses CDROM or ISO as the installation source
leetcode 205. Isomorphic Strings
cellular automaton
LabVIEW关于TDMS和Binary存储速度
Microsoft announces that it will discontinue support for older versions of visual studio
The third "World War" - chip defense, smokeless battlefield!
Common MySQL date query
How to quickly reference uview UL in uniapp, and introduce and use uviewui in uni app
kali下安装pycharm并创建快捷访问
[issue 31] 360 background development practice experience - two rounds of technical aspects
Force/release learning arrangement in IC Verification (5) research on the influence of reg type signals
Layer sublayer assigns values to the page elements of the parent layer to achieve the effect of transferring values to the page of the parent layer
[backtracking based on bit operation] queen n problem 2
Walking "daily question" and "DP"