欧美性猛交xxxx免费看_牛牛在线视频国产免费_天堂草原电视剧在线观看免费_国产粉嫩高清在线观看_国产欧美日本亚洲精品一5区

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

Linux:制作mipsel 交叉工具鏈 (更新版)

如意 ? 來源:CSDN ? 作者:CaspianSea ? 2020-06-23 08:56 ? 次閱讀

1.代碼結(jié)構(gòu)為:

setup ---》 源代碼壓縮包

src ---》源碼

~/code/cross-compile$ ls src/

binutils-2.24 gcc-4.7.1 gdb-7.6.2 glibc-2.18

build --》 編譯目錄

:~/code/cross-compile$ ls build/

binutils gcc gdb glibc

kernel ----》 內(nèi)核代碼:

~/code/cross-compile/kernel$ ls

linux-3.10

2.編譯 binutils

在build/binutils 下,執(zhí)行命令:

。./。./src/binutils-2.24/configure --target=mipsel-linux-gnueabi --prefix=/home/charles/code/cross-compile/embedded-toolchain/cross-tools --with-sysroot=/home/charles/code/cross-compile/embedded-toolchain

然后,執(zhí)行 make, make install 安裝

3. 編譯 GCC stage 1

在 build/gcc目錄下,執(zhí)行

AR=ar LDFLAGS=“-Wl,-rpath=/home/charles/code/cross-compile/embedded-toolchain/cross-tools/lib” 。./。./src/gcc-4.7.1/configure --prefix=/home/charles/code/cross-compile/embedded-toolchain/cross-tools --target=mipsel-linux-gnueabi --with-sysroot=/home/charles/code/cross-compile/embedded-toolchain --with-gmp=/usr/local --with-mpfr=/usr/local --with-ppl=/usr/local --with-newlib --without-headers --disable-multilib --disable-nls --disable-decimal-float --disable-libgomp --disable-libmudflap --disable-libssp --disable-shared --disable-threads --enable-languages=c --with-float=soft --with-arch=mips32r2 --with-tune=mips32r2

然后,

make all-gcc all-target-libgcc

make install-gcc install-target-libgcc

4. 安裝內(nèi)核頭文件

進入到內(nèi)核代碼目錄,

執(zhí)行命令:

ARCH=mips make mrproper

ARCH=mips make headers_check

ARCH=mips CROSS_COMPILE=mipsel-gcc-linux-gnueabi make INSTALL_HDR_PATH=/home/charles/code/cross-compile/embedded-toolchain/usr headers_install

find /home/charles/code/cross-compile/embedded-toolchain/usr/include/ -name “.install” -or -name “。.install.cmd” | xargs rm -fv ;\

5. 編譯 GLIBC

進入到 build/glibc,執(zhí)行

BUILD_CC=gcc CC=mipsel-linux-gnueabi-gcc AR=mipsel-linux-gnueabi-ar RANLIB=mipsel-linux-gnueabi-ranlib 。./。./src/glibc-2.18/configure --prefix=/usr --host=mipsel-linux --enable-add-ons --with-fp=no libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_ctors_header=yes --with-tune=mips32r2 --with-arch=mips32r2 --with-headers=/home/charles/code/cross-compile/embedded-toolchain/usr/include

把步驟3生成的mipsel gcc 加入到 path:

export PATH=$PATH:/home/charles/code/cross-compile/embedded-toolchain/cross-tools/bin

執(zhí)行

make

make install install_root=/home/charles/code/cross-compile/embedded-toolchain

6.編譯最后的GCC

AR=ar LDFLAGS=“-Wl,-rpath=/home/charles/code/cross-compile/embedded-toolchain/cross-tools/lib” 。./。./src/gcc-4.7.1/configure --prefix=/home/charles/code/cross-compile/embedded-toolchain/cross-tools --target=mipsel-linux-gnueabi --with-sysroot=/home/charles/code/cross-compile/embedded-toolchain --with-gmp=/usr/local --with-mpfr=/usr/local --with-ppl=/usr/local --disable-multilib --disable-libssp --disable-nls --disable-libstdcxx-pch --with-arch=mips32r2 --with-tune=mips32r2 --enable-languages=c,c++ --with-float=soft --with-mips-plt --disable-libgomp --disable-libmudflap --enable-poison-system-directories --enable-symvers=gnu --enable-long-long --enable-threads --enable-shared --enable-lto --enable-__cxa_atexit --with-gnu-as --with-gnu-ld

再執(zhí)行

make all-gcc -j10 -i -k

make all-target-libgcc

make install-gcc

make install-target-libgcc

make

make install

最后,看一下生成的gcc的信息

。/mipsel-linux-gnueabi-gcc -v

Using built-in specs.

COLLECT_GCC=。/mipsel-linux-gnueabi-gcc

COLLECT_LTO_WRAPPER=/home/charles/toolchain/embedded-toolchain/cross-tools/bin/。./libexec/gcc/mipsel-linux-gnueabi/4.7.1/lto-wrapper

Target: mipsel-linux-gnueabi

Configured with: 。./。./src/gcc-4.7.1/configure --prefix=/home/charles/code/cross-compile/embedded-toolchain/cross-tools --target=mipsel-linux-gnueabi --with-sysroot=/home/charles/code/cross-compile/embedded-toolchain --with-gmp=/usr/local --with-mpfr=/usr/local --with-ppl=/usr/local --disable-multilib --disable-libssp --disable-nls --disable-libstdcxx-pch --with-float=soft --with-arch=mips32r2 --with-tune=mips32r2 --enable-languages=c,c++ --with-float=soft --with-mips-plt --disable-libgomp --disable-libmudflap --enable-poison-system-directories --enable-symvers=gnu --enable-long-long --enable-threads --enable-shared --enable-lto --enable-__cxa_atexit --with-gnu-as --with-gnu-ld

Thread model: posix

gcc version 4.7.1 (GCC)

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • Linux
    +關(guān)注

    關(guān)注

    87

    文章

    11350

    瀏覽量

    210477
  • 開發(fā)工具鏈
    +關(guān)注

    關(guān)注

    0

    文章

    14

    瀏覽量

    1605
收藏 人收藏

    評論

    相關(guān)推薦

    MES工具更新信息 04/2024

    我們剛剛發(fā)布了最新的MES模賽思工具更新。MXAM、MoRe和MQC的最新版本已經(jīng)為您下載安裝做好了準備。 下面列出了工具亮點的簡要概述和發(fā)行說明。同時也歡迎您前往官網(wǎng)查看我們的新功能
    的頭像 發(fā)表于 11-13 14:46 ?307次閱讀
    MES<b class='flag-5'>工具</b><b class='flag-5'>更新</b>信息 04/2024

    RISC-V 工具簡介

    一、概述 “工具”是英文“toolchain”的翻譯,它指輔助開發(fā)者完成程序開發(fā)、調(diào)試、性能分析調(diào)優(yōu)等開發(fā)優(yōu)化行為的一系列工具集合。它一般包含編譯器、匯編器、鏈接器、調(diào)試器、模擬器等基礎(chǔ)工具
    發(fā)表于 10-25 22:59

    嵌入式學(xué)習(xí)-飛凌嵌入式ElfBoard ELF 1板卡-開發(fā)環(huán)境搭建之交叉編譯

    不同的cpu的對應(yīng)的可執(zhí)行的二進制文件。交叉編譯安裝建立交叉編譯環(huán)境又可分為安裝SDK(其中包含了交叉編譯工具
    發(fā)表于 09-30 09:36

    飛凌嵌入式ElfBoard ELF 1板卡-開發(fā)環(huán)境搭建之交叉編譯

    不同的cpu的對應(yīng)的可執(zhí)行的二進制文件。交叉編譯安裝建立交叉編譯環(huán)境又可分為安裝SDK(其中包含了交叉編譯工具
    發(fā)表于 09-29 09:51

    【飛凌嵌入式OK3576-C開發(fā)板體驗】應(yīng)用編譯運行

    源碼需要下載的庫文件。 編譯前準備 環(huán)境說明 開發(fā)環(huán)境操作系統(tǒng):Ubuntu24.04 64 位版 交叉工具:aarch64-non-linux-gnu 開發(fā)板使用 Bootloa
    發(fā)表于 08-26 17:55

    微軟發(fā)布CrowdStrike故障恢復(fù)工具

    近期,CrowdStrike 的一次故障意外地引發(fā)了全球范圍內(nèi)約850萬臺Windows電腦的藍屏崩潰現(xiàn)象,對此,微軟迅速響應(yīng),發(fā)布了一款專用的恢復(fù)工具,并依據(jù)廣泛的IT管理員反饋,迅速迭代推出了該工具更新版本。
    的頭像 發(fā)表于 07-23 14:41 ?420次閱讀

    在ubuntu 24.04下嘗試使用riscv64-linux-musleabi_for_x86_64-pc-linux-gnu工具編譯cv1800大核出現(xiàn)報錯的原因?

    在ubuntu 24.04下嘗試使用riscv64-linux-musleabi_for_x86_64-pc-linux-gnu工具編譯cv1800大核,結(jié)果出現(xiàn)如下報錯: /home
    發(fā)表于 07-16 08:20

    opensuse linux安裝好了交叉工具并且設(shè)置了 IDF_PATH,make all的時候會報錯為什么?

    opensuse linux,已經(jīng)安裝好了交叉工具(官網(wǎng)下載的)并且設(shè)置了 IDF_PATH??梢詍ake menuconfig,但是make all的時候會報錯。我的編譯器是裝好的
    發(fā)表于 06-26 06:57

    嵌入式學(xué)習(xí)-飛凌嵌入式ElfBoard ELF 1板卡-交叉編譯描述及使用方法

    1.交叉編譯:arm-poky-linux-gnueabi 2.默認安裝路徑:/opt/fsl-imx-x11/4.1.15-2.0.0 3.設(shè)置環(huán)境變量的命令:. /opt
    發(fā)表于 05-20 16:55

    飛凌嵌入式ElfBoard ELF 1板卡-交叉編譯描述及使用方法

    1.交叉編譯:arm-poky-linux-gnueabi 2.默認安裝路徑:/opt/fsl-imx-x11/4.1.15-2.0.0 3.設(shè)置環(huán)境變量的命令:. /opt
    發(fā)表于 05-20 16:53

    蘋果發(fā)布macOS 14.5正式版,新增“Quartiles”單詞游戲,支持多項更新

    合格的 Mac 用戶可通過系統(tǒng)設(shè)置中的“軟件更新”免費獲取 macOS Sonoma 14.5 更新。對于仍在使用 macOS Ventura 的用戶,本次更新版本號為 13.6.7;若使用的是 macOS Monterey,則
    的頭像 發(fā)表于 05-14 11:10 ?5134次閱讀

    請問stm32f401和stm32f402到底在哪些地方不同?

    這兩個型號好像看不出有什么區(qū)別,402是401的后繼更新版本嗎
    發(fā)表于 03-28 08:29

    志橙股份更新IPO招股書

    近日,志橙股份發(fā)布了更新版的IPO招股書,并對過往三輪問詢的回復(fù)內(nèi)容進行了修訂。該公司計劃籌集8億元資金,募集資金用于SiC材料研發(fā)制造總部項目,SiC材料研發(fā)項目,還用于發(fā)展與科技儲備資金,為公司的長遠發(fā)展提供資金保障。
    的頭像 發(fā)表于 03-25 15:39 ?538次閱讀

    蘋果發(fā)布macOS 14.4更新,增加新Emoji表情和安全功能

    蘋果公司3月8日宣布推出Mac電腦的macOS 14.4更新版,該版本的內(nèi)部編號為23E214,相較前一次的發(fā)布已經(jīng)經(jīng)過了長達28天的等待。值得一提的是,由于技術(shù)原因,部分地區(qū)用戶可能會在半個小時以內(nèi)接收到此次更新請求。
    的頭像 發(fā)表于 03-08 11:13 ?1778次閱讀

    關(guān)于CY7C65215-32LTXI.cyusb固件更新的疑問求解

    確認一下是否正確和完整,fwdownload.exe文件如果有相應(yīng)的更新版本,也請一并提供一下,謝謝!!
    發(fā)表于 02-28 06:38