标签:foo nothing feed roc commit less build port dev
https://wiki.openwrt.org/about/toolchain
The OpenWrt build system is a set of Makefiles and patches that allows users to easily generate both a cross-compilation toolchain and a root filesystem for embedded systems. The cross-compilation toolchain uses musl, a tiny C standard library.
A compilation toolchain is the set of tools used to compile code for your system. It consists of:
binutils
/ deb: binutils )Using a PC, the compilation toolchain runs on an x86 processor and generates code for a x86 processor. On most Linux systems, the compilation toolchain uses the GNU libc as C standard library. It is called the "host compilation toolchain", and the machine it is running on is called the "host system". The compilation toolchain is provided by the distribution, and has nothing to do with the OpenWrt build system.
Embedded systems use a different processor and require a cross-compilation toolchain - a compilation toolchain that runs on a host system but that generates code for a target system (and target processor‘s instruction set architecture (ISA)). For example, if your host system uses x86 and your target system uses MIPS32, the regular compilation toolchain of your host runs on x86 and generates code for x86, while the cross-compilation toolchain runs on x86 and generates code for MIPS32.
While it is possible to manually configure and compile your own software, OpenWrt‘s build system automates this process to work on the instruction set architecture of most embedded systems.
While the OpenWrt‘s build system was designed for developers, inexperienced users can also use it to easily build their own custom firmware!
The OpenWrt Makefile has its own syntax, different from the conventional Makefile of Linux make tool. The OpenWrt Makefile defines the meta information of the package, where to download the package, how to compile, where to install the compiled binaries, etc. See How to Build OpenWrt Application Package for more detail.
tools
– automake, autoconf, sed, cmaketoolchain/binutils
– as, ld, …toolchain/gcc
– gcc, g++, cpp, …target/linux
– kernel modulespackage
– core and feed packagestarget/linux
– kernel imagetarget/linux/image
– firmware image file generationUnderlined TextItalic Text
标签:foo nothing feed roc commit less build port dev
原文地址:http://www.cnblogs.com/merlindu/p/6426965.html