重庆做网站开发的集中,适合口碑营销的产品,设计云官网,免费虚拟主机管理系统下载GCC 工具链自动编译脚本本工具用于自动编译指定的工具链#xff0c;可以同时生成运行于本机系统 (Build system) 和 Windows 系统(可以修改)的两套工具链具体编译规则指定于 .config 中defconfig 目录包含一些预定义的规则#xff0c;将其复制到脚本根目录并改名为 .config 后…GCC 工具链自动编译脚本本工具用于自动编译指定的工具链可以同时生成运行于本机系统 (Build system) 和 Windows 系统(可以修改)的两套工具链具体编译规则指定于 .config 中defconfig 目录包含一些预定义的规则将其复制到脚本根目录并改名为 .config 后即可编译编译方式make或make -j编译生成的工具链位于 output 目录中.config 说明ARCH用于 Linux 内核的架构名称TARGET工具链的 target (--target$(TARGET))HOST工具链的第二个运行环境 (--host$(HOST))需要 PATH 中存在此运行环境的工具链相关目录VARIANT工具链的变体名(即不同优化/指令集等使用不同的名字)没有格式要求任意指定PROGRAM_PREFIX工具链的程序名前缀跟 TARGET 不同时会创建符号链接TARGET_GCC_FLAGS编译 GCC 时传入的额外 configure 参数LIBC工具链使用的 C 库可以是 glibc uclibc-ng musl newlibLIBC_USE_SOFT_FLOATC 库是否使用软件浮点运算(即禁用 FPU)(可选值是 y 或者留空)LIBC_DEBUGC 库是否包含调试信息(不影响优化)(可选值是 y 或者留空)UCLIBC_VARIANTuClibc-ng 配置文件的变体留空使用 $(TARGET).config否则使用 $(TARGET).$(UCLIBC_VARIANT).configTARGET_CFLAGS编译目标平台运行库的额外 CFLAGS,也应用于 CXXFLAGSTARGET_LDFLAGS编译目标平台运行库的额外 LDFLAGS生成的工具链位置运行于本机系统的工具链位于 output/$(TARGET)/$(VARIANT)/toolchain/usr运行于第二个运行环境的工具链位于 output/$(TARGET)/$(VARIANT)/target/usr其它说明如果软件包下载失败请手动下载后放入 dl 目录Auto-build scripts for GCC cross-compiling toolchainThis tool is used to build specific toolchains. It can produce a toolchain running under the build system and a toolchain running under Windows (or other platforms)The build rules are set in .configThe folder defconfig contains some pre-defined configuration files. You can copy one of them in to the build root and rename it to .config to build.How to build:makeormake -jThe output toolchains are stored in the folder output..config description:ARCHArchitecture name used for Linux kernel compilingTARGETTarget (GNU tirplet) for the toolchain (--target$(TARGET))HOSTHost (not the build system, GNU triplet) for the toolchain (--host$(HOST)), requires pre-built toolchain for the hostVARIANTVariant name for this build (to identify the different optimization/ISA and etc.), no format requirementsPROGRAM_PREFIXProgram prefix. Will create symbolic links when its different from TARGETTARGET_GCC_FLAGSExtra arguments passed to the GCC configure scriptLIBCThe C library used for the toolchain, valid names are glibc, uclibc-ng, musl and newlibLIBC_USE_SOFT_FLOATWhether to use soft-float in C library (y for Yes, empty for No)LIBC_DEBUGWhether to include debug symbols in C library (y for Yes, empty for No)UCLIBC_VARIANTCOnfiguration variant for uClibc-ng. Leave empty to use $(TARGET).configotherwise uses $(TARGET).$(UCLIBC_VARIANT).configTARGET_CFLAGSExtra CFLAGS passed to target library builds (also applied to CXXFLAGS)TARGET_LDFLAGSExtra LDFLAGS passed to target library buildsPath of generated toolchains:Running on build system: output/$(TARGET)/$(VARIANT)/toolchain/usrRunning on $(HOST): output/$(TARGET)/$(VARIANT)/target/usrOthers:If the source code archive is failed to download, you can download it manually and copy to the folder dl.