本文轉載自:https://my.oschina.net/freeblues/blog/596448php
buildroot
是一款專門用來定製嵌入式 Linux 的內核和根文件系統(rootfs) 的開源工具, 很是強大兼方便, 不過對於新手來講, 過多的配置項明顯有些難度, 本文的目標就是簡要介紹這款工具, 讓新手迅速入門.linux
目標:nginx
練習:git
首先是獲取該工具, 在 github
上, 命令以下:github
git clone https://github.com/buildroot/buildroot
進入目錄, 查看:express
pi@rpi /opt/github/buildroot $ ls -al
total 420
drwxr-xr-x 15 root root 4096 Dec 24 21:18 .
drwxr-xr-x 73 git git 4096 Jan 3 08:01 ..
drwxr-xr-x 2 root root 4096 Dec 24 21:15 arch
drwxr-xr-x 25 root root 4096 Dec 24 21:15 board
drwxr-xr-x 15 root root 4096 Dec 24 21:15 boot
-rw-r--r-- 1 root root 146433 Dec 24 21:15 CHANGES -rw-r--r-- 1 root root 44501 Dec 24 21:16 .config -rw-r--r-- 1 root root 19111 Dec 24 21:15 Config.in -rw-r--r-- 1 root root 42879 Dec 24 21:15 Config.in