I tried to generate the zImage for mfgtools by another method "make imx_v7_mfg_defconfig" & "make uImage LOADADDR=0x10008000", error was shown as below.
kernel/power/earlysuspend.c: In function 'early_suspend':
kernel/power/earlysuspend.c:109:3: error: implicit declaration of function 'android_wake_unlock' [-Werror=implicit-function-declaration]
kernel/power/earlysuspend.c: In function 'request_suspend_state':
kernel/power/earlysuspend.c:173:3: error: implicit declaration of function 'android_wake_lock' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
Then I checked the "Android of staging driver in menuconfig", this error was solved but another error
"drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.h:28:18: fatal error: sync.h: No such file or directory
compilation terminated." appeared.
I would like to know whether this method is correct and how to solve the problem?