当前位置:网站首页>openwrt目录结构
openwrt目录结构
2022-06-23 03:51:00 【帅的没朋友~】
openwrt目录结构
一:目录结构

- build_dir
这是一个中间文件夹,所有代码都会拷到其中编译,代码在编译之前会拷贝一份到此目录中。为什么要拷贝呢?一个原因就是编译过程中OpenWrt可能会对其中一些代码和makefile作改动,为了安全起见,对副本进行编译。
其目录内容和staging_dir一模一样,staging_dir就是build_dir中代码的编译结果。- host:
和平台无关的一些工具、库代码 - target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi:
工具链源码 - toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi:
和平台有关的代码,其中是一些代码包,packge中的代码包很多都会拷贝到此目录编译,自己添加的代码包也应拷贝至此目录
- host:
- staging_dir
目录保存工具、内核等所有代码的编译结果。- host:
文件夹是和平台无关的一些生成物。 - target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi:
根据我们所选平台和芯片产生的,对应平台的编译结果。例如对应平台的库文件和头文件。 - toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.4.0_glibc-2.24_eabi:
根据所选平台生成的交叉编译工具链及库文件。
- host:
- dl
dl为源代码下载目录,在编译过程中下载的源代码包都会保存在此文件夹下 - feeds
- files
- package
此目录主要存放OpenWrt的软件包,我们自己添加的应用层代码都应存放于此文件夹,代码包存放于此文件夹并编写相应的Makefile后,在编译过程中OpenWrt会自主识别并编译。
package下的目录会根据配置的不同而不同,其中基本都是openwrt的一些应用工具包,比如utils就是一引起工具集,ls,ssh等工具的源码都在此目录下 - target
target目录下主要是和平台有关的代码,最主要的是linux文件夹。如下图:
可以看到每一个平台都对应一个文件夹,通过"make menuconfig"选择平台和芯片时就是对应的此文件夹:
可以看到里面有多种芯片型号,此中的image是最终生成固件时会调用到的,在这里可以对我们的固件做部分定制,patches是一些补丁包。base-files中的目录和linux目录相对应,很多地方都有这个文件夹。 - tool
工具集
- include

顶层通用Makefile,其它Makefile包含的Makefile都可以在这找到。 - scripts
脚本工具
二:内核patch
三:文件系统自动内置文件
边栏推荐
- PTA:7-65 饮料的价格
- 静态双位置继电器GLS-3004K/DC220V
- 在Pycharm中使用append()方法对列表添加元素时提示“This list creation could be rewritten as a list literal“的解决方法
- McKinsey: in 2021, the investment in quantum computing market grew strongly and the talent gap expanded
- PTA:7-60 宠物的生长
- Openjudge noi 1.13 49: calculate logarithm
- How to use shell script to monitor file changes
- Volatile and threads
- 欢迎使用CSDN-markdown编辑器
- 不归零编码NRZ
猜你喜欢

2020:VL-BERT: Pre-training of generic visual-linguistic representation

Notes on writing questions in C language -- free falling ball

电流继电器JDL-1002A

Chrome调试技巧

② cocoapods原理及 PodSpec 文件上传操作

Please use the NLTK Downloader to obtain the resource

CAN总线基础知识

McKinsey: in 2021, the investment in quantum computing market grew strongly and the talent gap expanded

Monitoring artifact ZABBIX, from deployment to application, goes deep layer by layer

PaddlePaddle模型服务化部署,重新启动pipeline后出现报错,trt报错
随机推荐
Pta:6-30 time addition
在Pycharm中使用append()方法对列表添加元素时提示“This list creation could be rewritten as a list literal“的解决方法
左值与右值
Chrome调试技巧
自举驱动、top开关电源、光耦拾遗
PTA:7-64 该日是该年的第几天
Pta:7-67 friend is very simple 2016final
gson TypeAdapter 适配器
Pta:7-37 student number analysis
[binary tree] completeness test of binary tree
Leetcode 1208. Try to make the strings equal as much as possible (finally solved, good night)
Permission Operation in dynamics 365 plug-in
使用Live Chat促进业务销售的惊人技巧
磁阻 磁饱和
在PCB板边走高频高速信号线的注意事项–高频高速信号设计基本原则
解决使用Exception抛出后,@Transactional不生效
ADR electronic transmission EDI solution of national adverse drug reaction monitoring center
Pta:6-29 application of virtual base classes - people, teachers and students
关于php里tcp通讯用swoole框架出现的小问题
notepad++ 查找替换之分组替换保留