Arduino Yun OpenWrt 项目教程
项目的目录结构及介绍
openwrt-yun/
├── config
├── docs
├── feeds
├── package
├── scripts
├── target
├── tools
├── LICENSE
├── Makefile
├── README.md
└── version.mk
- config: 包含项目的配置文件。
- docs: 包含项目的文档文件。
- feeds: 包含第三方软件包的配置文件。
- package: 包含项目的主要软件包。
- scripts: 包含构建过程中使用的脚本。
- target: 包含目标平台的配置文件。
- tools: 包含构建过程中使用的工具。
- LICENSE: 项目的许可证文件。
- Makefile: 项目的主要构建文件。
- README.md: 项目的介绍和使用说明。
- version.mk: 项目的版本信息文件。
项目的启动文件介绍
项目的启动文件主要是 Makefile
,它负责项目的构建过程。以下是 Makefile
的主要内容:
include $(TOPDIR)/rules.mk
PKG_NAME:=openwrt-yun
PKG_VERSION:=1.0
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/openwrt-yun
SECTION:=utils
CATEGORY:=Utilities
TITLE:=OpenWrt for Arduino Yun
DEPENDS:=+libc +libpthread
endef
define Package/openwrt-yun/description
This package provides OpenWrt support for Arduino Yun.
endef
define Build/Prepare
# Prepare steps
endef
define Build/Compile
# Compile steps
endef
define Package/openwrt-yun/install
# Install steps
endef
$(eval $(call BuildPackage,openwrt-yun))
项目的配置文件介绍
项目的配置文件主要位于 config
目录下,以下是一些主要的配置文件:
- config/target: 目标平台的配置文件。
- config/feeds: 第三方软件包的配置文件。
- config/package: 项目软件包的配置文件。
例如,config/target
目录下的 target.mk
文件可能包含以下内容:
TARGET_ARCH:=mips
TARGET_OS:=linux
TARGET_BOARD:=ar71xx
这些配置文件定义了项目的构建目标、依赖关系和编译选项。
以上是基于 https://github.com/arduino/openwrt-yun.git
项目的教程,包含了项目的目录结构、启动文件和配置文件的介绍。希望这些信息对你有所帮助。