本文转载自: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