title: gcc-arm-linux-gnueabihf on Yocto
body: <p>I just installed a hardfloat toolchain using the following command on my Ubuntu</p>
  
  <pre><code>apt-get install gcc-arm-linux-gnueabihf
  </code></pre>
  
  <p>I want to compile my packages on Yocto using the hardfloat toolchain. So I add the following lines to <code>conf/local.conf</code></p>
  
  <pre><code>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"
  </code></pre>
  
  <p>But after compiling command <code>bitbake gmp</code> I received this ERROR:</p>
  
  <pre><code>| 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).
  </code></pre>
  
  <p>on <code>virtual:native:/home/dev/yocto/poky-daisy/meta/recipes-support/gmp/gmp_5.1.1.bb, do_configure</code></p>
  
  <p><strong>It should be note that before any change on <code>conf/local.conf</code> every things worked properly</strong></p>