This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gcc: error: unrecognized command line option ‘-mlittle-endian’

Hi,

I am referring to this document - http://www.omappedia.com/wiki/4AI.1.7_OMAP4_Icecream_Sandwich_Release_Notes

I can successfully build u-boot and x-loader and now I am trying to build the kernel using the following command -

make ARCH=arm distclean
make ARCH=arm blaze_defconfig
make ARCH=arm uImage 2>&1 |tee ${MYDROID}/logs/kernel_make.out

But I am getting the following error -

cripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

I am not sure what this means? Am I missing some libraries to be installed?

Thanks in advance

-Palak