buildroot 使用小記 - 2 源檔案目錄結構

來源:互聯網
上載者:User

標籤:

官方下載下來的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 源檔案目錄結構

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.