title: as: unrecognized option '-EL' while compiling android kernel on ubuntu 14
body: <pre><code>ARCH=arm64
  SUBARCH=arm64
  CROSS_COMPILE=aarch64-linux-android-
  </code></pre>
  
  <p>Following is the output of make</p>
  
  <pre><code># make
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  as: unrecognized option '-EL'
  make[2]: *** [scripts/mod/empty.o] Error 1
  make[1]: *** [scripts/mod] Error 2    
  make: *** [scripts] Error 2
  </code></pre>
  
  <p>still the "as" is used from <code>binutils (/usr/bin/as)</code> instead of <code>/usr/bin/aarch64-linux-android-as</code>
  despite of gcc versions, <code>gcc-4.4 gcc-4.6 gcc-4.8</code>, Ubuntu always install same <code>binutils</code></p>
  
  <p>renaming <code>/usr/bin/as</code> does not help &amp; make fails</p>
  
  <p>how can I make "make" use right "as" while cross compile.</p>