hi,

CROSS_COMPILE should be

CROSS_COMPILE=arm-eabi-

Regards
Harish

On Aug 20, 10:54 am, rk <[email protected]> wrote:
> Hi,
>
> I am trying to build the kernel from the Andorid source. For that I
> just clone the kernel from the Andorid repo. I created a dir outside
> myAndroid.
>
> Then I did the following from tat dir,
>
> $ git clone git://android.git.kernel.org/kernel/common.git
> $ git checkout -t origin/android-goldfish-2.6.27 -b goldfish
> $ cd common # the kernel source is now in here
> $ make goldfish_defconfig
>
> When I say make goldfish_deconfig
>
>   CHK     include/linux/version.h
> make[1]: `include/asm-arm/mach-types.h' is up to date.
>   CHK     include/linux/utsrelease.h
>   CC      kernel/bounds.s
> cc1: error: unrecognized command line option "-mlittle-endian"
> cc1: error: unrecognized command line option "-mapcs"
> cc1: error: unrecognized command line option "-mno-sched-prolog"
> cc1: error: unrecognized command line option "-mabi=aapcs-linux"
> cc1: error: unrecognized command line option "-mno-thumb-interwork"
> kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
> kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
> make[1]: *** [kernel/bounds.s] Error 1
> make: *** [prepare0] Error 2
>
> My env Variables are : ARCH=arm
> CROSS_COMPILE=CROSS_COMPILE=/home/android/android_new_cupcake/prebuilt/
> linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-
>
> Can anyone tell me where I am doing wrong and what all the things I
> need to do to build a kernel for the emulator.
>
> Thanks
> Rk

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to