1.什麼是buildroot?
Buildroot是一個漂亮,簡單,高效的嵌入式Linux構建系統。(鏈接)
Buildroot是一組Makefile和Patch文件,用來簡化和自動化爲嵌入式系統建造一個完整和可引導的Linux環境的過程,特別是在使用交叉編譯來允許在單一的基於Linux的開發系統上爲多個目標平臺進行建造的時候。Buildroot可以自動建造所需要的交叉編譯工具鏈,創建根文件系統,編譯一個Linux內核映像,併爲目標嵌入式系統生成引導裝載器,它還可以進行這些獨立步驟的任何組合。例如可以獨立的使用已經安裝好的交叉編譯工具鏈,而只用Buildroot創建根文件系統。(維基百科)
下面是buildroot包含的文件:
.
├── arch
├── board
├── boot
├── build
├── CHANGES
├── Config.in
├── Config.in.legacy
├── configs
├── COPYING
├── docs
├── fs
├── linux
├── Makefile
├── Makefile.legacy
├── package
├── README
├── support
├── system
└── toolchain
2.buildroot有哪些學習資源?
(1)《The Buildroot user manual》
在線文檔:https://buildroot.org/downloads/manual/manual.html
PDF電子書:http://nightly.buildroot.org/manual.pdf
(2)《Chapter 17. Adding new packages to Buildroot》
http://buildroot.uclibc.org/downloads/manual/manual.html#adding-packages
(3)《Using Buildroot for real projects》
https://elinux.org/images/2/2a/Using-buildroot-real-project.pdf
(4)《Buildroot: a deep dive into the core》
https://elinux.org/images/0/05/Petazzoni--buildroot_a_deep_dive_into_the_core.pdf