簡體   English   中英

Yocto上的gcc-arm-linux-gnueabihf

[英]gcc-arm-linux-gnueabihf on Yocto

我剛剛在Ubuntu上使用以下命令安裝了hardfloat工具鏈

apt-get install gcc-arm-linux-gnueabihf

我想使用hardfloat工具鏈在Yocto上編譯我的軟件包。 所以我在conf/local.conf添加了以下幾行

TUNE_FEATURES ?= "armv7athf-neon"
SDK_PATH="/usr/arm-linux-gnueabihf"
TARGET_SYS = "arm-linux-gnueabihf"
PATH +=":${SDK_PATH}/bin"
CONFIGURE_FLAGS="--target=$TARGET_SYS --host=$TARGET_SYS --build=i686-linux --with-libtool-sysroot=$SYSROOT"
CPPFLAGS="-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=$SYSROOT"
CFLAGS="$CPPFLAGS"
CXXFLAGS="$CPPFLAGS"
LDFLAGS="--sysroot=$SYSROOT"

但是在編譯命令bitbake gmp我收到此錯誤:

| configure: error: --target is not appropriate for GMP
| Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
| explicitly.  Use --host if cross-compiling (see "Installing GMP" in the
| manual for more on this).

virtual:native:/home/dev/yocto/poky-daisy/meta/recipes-support/gmp/gmp_5.1.1.bb, do_configure

應該注意的是,在對conf/local.conf進行任何更改之前,一切正常

我嘗試編譯arm-linux-gnueabihf時遇到同樣的問題

編輯meta / recipes-support / gmp / gmp.inc並添加

PACKAGECONFIG[host] = "--host=${HOST_SYS},--host=${TARGET_SYS},host"
EXTRA_OECONF += " --disable-assembly"

發生這種情況是因為gmt.inc使用了autotools /meta/classes/autotools.bbclass和autotools.bbclass中的變量CONFIGUREOPTS包含--host = $ {HOST_SYS}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM