当前位置:网站首页>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:6-30 time addition
- If you want to understand PostgreSQL, you must first brush the architecture
- Abnova 荧光染料 555-C3 马来酰亚胺方案
- 项目总结1(头文件,switch,&&,位变量)
- How node+express operates cookies
- Pta:7-67 friend is very simple 2016final
- cadence中的焊盘和flash symbol
- notepad++ 查找替换之分组替换保留
- Fundamentals of 3D mathematics [16] formulas for uniformly accelerated linear motion
- 1183. 电力
猜你喜欢

Halcon知识:binocular_disparity 知识

抖音x-bogus和_signature参数分析
![Fundamentals of 3D mathematics [16] formulas for uniformly accelerated linear motion](/img/51/5b05694bbd0f4fd01dd26cf55b22c7.png)
Fundamentals of 3D mathematics [16] formulas for uniformly accelerated linear motion

静态双位置继电器 XJLS-84/440/DC220V

Tiktok x-bogus and_ Signature parameter analysis

CVE-2019-14287(sudo提权)

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

PCB----理论与现实的桥梁

LabVIEW在同一表中同时显示十六进制字符和普通字符

VGG 中草药识别
随机推荐
Principle of 8-bit full adder
Pta:6-30 time addition
智能语音时代到来,谁在定义新时代AI?
X24cxx series EEPROM chip C language universal reading and writing program
Lighthouse locally deployed TCA code analysis tool
32单片机一个变量多个.c里使用
Distance measure - cosine distance
Laravel中使用 Editor.md 上传图片如何处理?
Leetcode 1208. Make strings as equal as possible
积分商城的三种运营方向
Abnova酸性磷酸酶(小麦胚芽)说明书
[acnoi2022] no way without guessing
一款MVC5+EasyUI企业快速开发框架源码 BS框架源码
Examples of corpus data processing cases (part of speech encoding, part of speech restoration)
PTA:7-58 图书音像出租管理
制造型企业开发的SRM供应商管理系统特点是什么
Banner 标语 旗帜
Pta:7-64 what day of the year is this day
thinkphp6 模版替换
OpenJudge NOI 1.13 49:计算对数