我刚刚在我的Ubuntu上使用以下命令安装了一个硬浮动工具链
apt-get install gcc-arm-linux-gnueabihf我想使用硬浮动工具链在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 进行任何更改之前,所有的事情都是正确的。
发布于 2014-11-23 18:15:11
我也有同样的问题,当我尝试编译arm-linux-gnueabihf时。
编辑元/食谱-支持/gmp/gmp.inc并添加
PACKAGECONFIG[host] = "--host=${HOST_SYS},--host=${TARGET_SYS},host"
EXTRA_OECONF += " --disable-assembly"Ist之所以发生,是因为gmt.inc在autotools.bbclass contains中使用autotools /meta/classes/autotools.bbclass和变量CONFIGUREOPTS -host=${HOST_SYS}
https://stackoverflow.com/questions/26947430
复制相似问题