Build rootfs

I get this error message while trying to get uboot.bin

make[1]: Entering directory `/home/ankit/u-boot/examples'
arm-eabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -
msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/ankit/u-boot/
include -fno-builtin -ffreestanding -nostdinc -isystem /home/ankit/
rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/
gcc/arm-eabi/4.4.0/include -pipe -DCONFIG_ARM -D__ARM__ -
march=armv7a -Wall -Wstrict-prototypes -c -o hello_world.o
hello_world.c
hello_world.c:1: error: bad value (armv7a) for -march= switch
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/home/ankit/u-boot/examples'
make: *** [examples] Error 2

Any help would be appreciated.

Thanks
Ankit

I believe the -march option expects a value of "armv7-a" and not
"armv7a". The dash is important.

GCC docs with listing of -march options:
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html

CLFS info on ARM arch choices:
http://cross-lfs.org/view/clfs-embedded/arm/cross-tools/variables.html

-Andrew

Thank you it worked. But now it has the following error. Could you
please help me with it.

ARM -D__ARM__ -march=armv7-a -Wall -Wstrict-prototypes -c -o board.o
board.c
board.c:130: error: inline function 'coloured_LED_init' cannot be
declared weak
board.c:132: error: inline function 'red_LED_on' cannot be declared
weak
board.c:134: error: inline function 'red_LED_off' cannot be declared
weak
board.c:136: error: inline function 'green_LED_on' cannot be declared
weak
board.c:138: error: inline function 'green_LED_off' cannot be declared
weak
board.c:140: error: inline function 'yellow_LED_on' cannot be declared
weak
board.c:142: error: inline function 'yellow_LED_off' cannot be
declared weak