Buildroot, making embedded Linux easy. Note that this is not the official repository, but only a mirror. The official Git repository is at http://git.buildroot.net/buildroot/. Do not open issues or file pull requests here.
Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.
The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html
To build and use the buildroot stuff, do the following:
1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images
You do not need to be root to build or run buildroot. Have fun!
Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.
Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: [email protected]
You can also find us on #buildroot on Freenode IRC.
If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches
cd buildroot/
mkdir ../outputs/device1
make O=../outputs/device1 menuconfig
make O=../outputs/device1
mkdir ../outputs/device2
make O=../outputs/device2 menuconfig
make O=../outputs/device2
=========================================================================
====外部編譯方法
說明檔 buildroot/docs/manual/using-buildroot-development.txt
1. modify buildroot/linux/linux.mk
"LINUX_OVERRIDE_SRCDIR = /home/dikey/sdk/buildroot/out_beaglebone/build/linux-adde2ca9f86797071f6e7b2b9e779fa5e4a8f3cd"
2. make linux-rebuild all
=========================================================================
====編譯beaglebone
cd /home/dikey/sdk/buildroot
make O=out_beaglebone beaglebone_defconfig
make O=out_beaglebone menuconfig
make -j4 O=out_beaglebone 2>&1 | tee ./out_beaglebone.log
-------------------------------------------------------------------------
====編譯beaglebone qt5
cd /home/dikey/sdk/buildroot
make O=out_beaglebone_qt5 beaglebone_qt5_defconfig
make O=out_beaglebone_qt5 menuconfig
make -j4 O=out_beaglebone_qt5 2>&1 | tee ./out_beaglebone_qt5.log
=========================================================================
====編譯失敗 qt5declarative-5.8.0
修改 build/qt5declarative-5.8.0/examples/examples.pro ,不要去編譯 quick
這時安裝會失敗
執行 touch build/qt5declarative-5.8.0/.stamp_target_installed
=========================================================================
====HOST編譯 QT project
test -e Makefile
--------
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -project #產生 .pro
--------
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -o Makefile ./xx.pro #產生 Makefile
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -o Makefile ./xx.pro -spec buildrootout_beaglebone_qt5/build/qt5base-5.8.0/mkspecs/devices/linux-buildroot-g++ #產生 Makefile
--------
/usr/bin/make -f Makefile #編譯
=========================================================================
====TARGET編譯 QT project
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -project #產生 .pro
--------
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -o Makefile ./xx.pro -spec buildroot/out_beaglebone_qt5/build/qt5base-5.8.0/mkspecs/devices/linux-buildroot-g++ #產生 Makefile
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -o Makefile ./xx.pro -spec buildroot/out_beaglebone_qt5/build/qt5base-5.8.0/mkspecs/devices/linux-beagleboard-g++ #產生 Makefile
buildroot/out_beaglebone_qt5/host/usr/bin/qmake -o Makefile ./xx.pro -spec buildroot/out_beaglebone_qt5/build/qt5base-5.8.0/mkspecs/devices/linux-beagleboard-g++/qmake.conf #產生 Makefile
--------
buildroot/out_beaglebone_qt5/build/qt5base-5.8.0/bin/qmake #編譯
buildroot/out_beaglebone_qt5/build/qt5base-5.8.0/bin/qmake -f Makefile #編譯