2013年9月8日星期日

android 3.4 kernel compile-time error occurs

Build Environment
Ubuntu 12.04 LTS
android kernel is the official website to download of the common
git clone https://android.googlesource.com/kernel/common.git
Then checkout version is 3.4

After the kernel from the download does not change just want to compile it, see if I can pass

compile-time error occurs at :


drivers/misc/akm8975.c: 35:32: fatal error: linux / earlysuspend.h: No such file or directory
compilation terminated.
make [2]: *** [drivers/misc/akm8975.o] Error 1
make [1]: *** [drivers / misc] Error 2
make: *** [drivers] Error 2


you have encountered it, I ask how to solve


------ Solution ------------------------------------ --------
look under your Android_root \ kernel \ kernel \ include \ linux Here there earlysuspend.h, if you do not see is not what you git download source when not under the full , in other a place where people copy this directory , it is not I can send one to you
------ Solution ---------------------- ----------------------
problem is not estimated source
but rather cross-compiler and compiler options set right
------ reference ------------------------ ---------------


Well I set up a problem, the first compilation do not know where to start , I put the board cpu corresponding configuration file copy came out , sir became a corresponding . config file , and then make can be

没有评论:

发表评论