error in android kernel compilation for arm

srinivas
Hi all,
I have arm-linux-gcc cross compiler and common-android-3.4 kernel.By using
this source i compiled for arm target as follows

pc@pc-desktop:~/data/android/common-android-3.4$ export
PATH=$PATH:/home/pc/data/arm/source/opt/FriendlyARM/toolschain/4.4.3/bin/

pc@pc-desktop:~/data/android/common-android-3.4$ echo $PATH

home/pc/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/u
sr/bin:/sbin:/bin:/usr/games:/home/pc/data/arm/source/opt/FriendlyARM/toolschain
/4.4.3/bin/:/home/pc/data/arm/source/o
pt/FriendlyARM/toolschain/4.4.3/bin/

pc@pc-desktop:~/data/android/common-android-3.4$ make ARCH=arm
CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
.
.
.
.
drivers/misc/akm8975.c:35:32: error: linux/earlysuspend.h: No such file or
directory
drivers/misc/akm8975.c:537: error: 'THIS_MODULE' undeclared here (not in a
function)
drivers/misc/akm8975.c:540: error: unknown field 'ioctl' specified in
initializer
drivers/misc/akm8975.c:540: warning: initialization from incompatible
pointer type
drivers/misc/akm8975.c:547: error: unknown field 'ioctl' specified in
initializer
drivers/misc/akm8975.c:547: warning: initialization from incompatible
pointer type
drivers/misc/akm8975.c:699: warning: data definition has no type or storage
class
drivers/misc/akm8975.c:699: warning: type defaults to 'int' in declaration
of 'MODULE_DEVICE_TABLE'
drivers/misc/akm8975.c:699: warning: parameter names (without types) in
function declaration
drivers/misc/akm8975.c:730: error: expected declaration specifiers or '...'
before string constant
drivers/misc/akm8975.c:730: warning: data definition has no type or storage
class
drivers/misc/akm8975.c:730: warning: type defaults to 'int' in declaration
of 'MODULE_AUTHOR'
drivers/misc/akm8975.c:730: warning: function declaration isn't a prototype
drivers/misc/akm8975.c:731: error: expected declaration specifiers or '...'
before string constant
drivers/misc/akm8975.c:731: warning: data definition has no type or storage
class
drivers/misc/akm8975.c:731: warning: type defaults to 'int' in declaration
of 'MODULE_DESCRIPTION'
drivers/misc/akm8975.c:731: warning: function declaration isn't a prototype
drivers/misc/akm8975.c:732: error: expected declaration specifiers or '...'
before string constant
drivers/misc/akm8975.c:732: warning: data definition has no type or storage
class
drivers/misc/akm8975.c:732: warning: type defaults to 'int' in declaration
of 'MODULE_LICENSE'
drivers/misc/akm8975.c:732: warning: function declaration isn't a prototype
drivers/misc/akm8975.c:732: warning: type defaults to 'int' in declaration
of 'MODULE_LICENSE'
drivers/misc/akm8975.c:732: warning: function declaration isn't a prototype
make[2]: *** [drivers/misc/akm8975.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2

please help me regarding this error

Reggie
you need to export $CROSS_COMPILE= to whatever the prefix for the compiler
is, so if it's arm-linux-gcc then it would be:
export $CROSS_COMPILE=arm-linux-

srinivas
I tried as you said but again same error..

srinivas
drivers/misc/akm8975.c:35:32: error: linux/earlysuspend.h: No such file or
directory i searched in the source file there is no earlysuspend.h file in
common-android-3.4 source[inckude/linux/ earlysuspend.h.
please help me regarding this error ??