[OpenWrt Wiki] 关于 您所在的位置:网站首页 musl编译器 [OpenWrt Wiki] 关于

[OpenWrt Wiki] 关于

2023-06-16 00:22| 来源: 网络整理| 查看: 265

工具链是一套Makefiles和补丁,可用于为OpenWrt系统生成交叉编译器和根目录。正在使用的C库是musl。

编译工具链是用于为系统编译代码的工具集。 它包括:

编译器 (我们使用, gcc ) 连接器和汇编器(我们使用, binutils ) C標準函式庫 (例如 musl-libc, GNU Libc, uClibc 或者 dietlibc).

A compilation toolchain generates code for the same processor's instruction set architecture (ISA) it runs on (in the case of most PCs and servers, for an x86 processor). On most Linux systems, the compilation toolchain uses the GNU libc as C standard library. This is called the “host compilation toolchain”, and the machine it is running on is called the “host system”. The host compilation toolchain is provided by the Linux distribution running on the host system, and has nothing to do with the actual 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 cross-compilation toolchain runs on x86 but generates code for MIPS32.

While it is possible to manually configure and compile your own software, this is complex and does not guarantee reproducible builds. LEDE's build system automates this process and provides a 100% reproducible build.

While the build system was designed for developers, inexperienced users can also use it to easily build their own custom firmware!

The build system's Makefiles have their own syntax, different from the conventional Makefiles of Linux make tool. The Makefiles define the meta information of the package, where to download the package, how to compile, where to install the compiled binaries, etc.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有