標籤:
官方下載下來的buildroot源碼包在解壓後,是一個名為buildroot的檔案夾,它下面的目錄/檔案結構如下:
Makefile - 頂級makefile,編譯總入口
Config.in - 頂級Config.in檔案,包含主要的配置資訊,同時還會引用其它Config.in檔案(比如arch linux toolchain等目錄下的Config.in檔案)
arch/ - Config.in.* 檔案定義了不同的架構 (processor type, ABI, floating point, etc.)
toolchain/ - 工具鏈
? packages for generating or using toolchains
? toolchain/ virtual package that depends on either toolchain-buildroot or toolchain-external
? toolchain-buildroot/ virtual package to build the internal toolchain
? toolchain-external/ package to handle external toolchains
system/ - 根檔案系統架構
? skeleton/ the rootfs skeleton
? Config.in, options for system-wide features like init system, /dev handling, etc.
linux/ - linux核心代碼
? linux.mk, the Linux kernel package
package/ - 軟體包
? all the user space packages (1600+)? busybox/, gcc/, qt5/, etc.
? pkg-generic.mk, core package infrastructure
? pkg-cmake.mk, pkg-autotools.mk, pkg-perl.mk, etc. Specialized package infrastructures
fs/ - 檔案系統
? logic to generate filesystem images in various formats
? common.mk, common logic
? cpio/, ext2/, squashfs/, tar/, ubifs/, etc.
boot/ - 引導系統
? bootloader packages
? at91bootstrap3/, barebox/, grub/, syslinux/, uboot/, etc.
configs/ - 針對不同硬體平台的特有設定檔合集
? default configuration files for various platforms
? similar to kernel defconfigs
? atmel_xplained_defconfig, beaglebone_defconfig,raspberrypi_defconfig, etc.
board/ - 針對不同硬體平台的特有設定檔/指令碼/patch
? board-specific files (kernel configuration files, kernel patches, image flashing scripts, etc.)
? typically go together with a defconfig in configs/
support/ - 其它
? misc utilities (kconfig code, libtool patches, download helpers, and more.)
docs/ - 文檔
? Buildroot documentation
? Written in AsciiDoc, can generate HTML, PDF, TXT versions:make manual
? 90 pages PDF document
? Also available pre-generated online.
? http://buildroot.org/downloads/manual/manual.html
buildroot 使用小記 - 2 源檔案目錄結構