buildroot 使用本地交叉編譯器編譯

2021-10-04 08:15:27 字數 1045 閱讀 5165

注: linux核心 和 檔案系統要用統一的交叉編譯器。

編譯鏈在設定中有多種選擇

1.自動生成

2.本地編譯鏈

下面為buildroot配置使用你安裝的本地交叉編譯器

make menuconfig 

target options --->

target architecture (arm (big endian)) --->

target binary format (elf) --->

target architecture variant (cortex-a8) --->

target abi (eabihf) --->

floating point strategy (vfpv3-d16) --->

arm instruction set (arm) --->

toolchain --->

toolchain type (external toolchain) --->

toolchain (custom toolchain) --->

toolchain origin (pre-installed toolchain) --->

(/home/sbc_7109_454_pdk3/aplex/linux-devkit/compiler/gcc-linaro-5.3-2016.02 ... // 這填你安裝的交叉編譯器的目錄,bin 的那一級目錄

(arm-linux-gnueabihf) toolchain prefix

external toolchain gcc version (5.x) --->

external toolchain kernel headers series (4.0.x) --->

external toolchain c library (glibc/eglibc) --->

參考:

使用buildroot建立交叉編譯工具

使用buildroot建立交叉編譯工具 若想詳細地了解 buildroot 可參考該文件 首先從此處 配置項如下 target architecture arm target architecture variant arm926t target abi oabi build option 此項中只...

使用buildroot建立自己的交叉編譯工具鏈

1.build tools gcc version 2.95 orany later g version 2.95 orany later python version 2.6or 2.7 2.dependencies packages 下面的自己根據需要安裝 ncurses5 menuconfig...

buildroot使用詳解

0 為什麼要使用buildroot?讓我們的工作效率成百倍的提公升。1 獲取buildroot 2 配置buildroot 將原始碼包複製到 目錄下,並解壓tar xvf buildroot 2015.02.tar.gz 進入目錄,執行配置命令 cd buildroot 2015.02 執行 mak...