I had much the same problem when compiling against the config file I
pulled from the device. Have you tried creating a 'vanilla' config
file for the Nexus One and compiling it? This may help you figure out
whether there's a problem with your build chain or with the
configuration for the build you obtain from the phone.

>From memory to create a configuration for the N1 you use: 'make
mahimahi_defconfig', assuming you have the correct kernel sources.

Hope this helps :)

On Feb 8, 10:23 pm, bertoe <[email protected]> wrote:
> I'm having trouble building the android-msm-2.6.35 branch.
>
> Trying to build kernel for Nexus One, pulled the config.gz from /proc
>
> I'm building on Ubuntu 10.04 (64-bit)
> $ export ARCH=arm
> $ export CROSS_COMPILE=arm-eabi-
> $ export PATH=$PATH:~/android/prebuilt/linux-x86/toolchain/arm-
> eabi-4.4.0/bin
> $ make menuconfig
> $ make
>
> Here are the errors I'm getting:
> =========================================================================== 
> ===========
>
> CC      drivers/input/misc/capella_cm3602.o
> drivers/input/misc/capella_cm3602.c: In function
> 'capella_cm3602_irq_handler':
> drivers/input/misc/capella_cm3602.c:57: warning: unused variable 'val'
> drivers/input/misc/capella_cm3602.c: In function
> 'capella_cm3602_setup':
> drivers/input/misc/capella_cm3602.c:108: error: implicit declaration
> of function 'request_irq'
> drivers/input/misc/capella_cm3602.c:110: error: 'IRQF_TRIGGER_RISING'
> undeclared (first use in this function)
> drivers/input/misc/capella_cm3602.c:110: error: (Each undeclared
> identifier is reported only once
> drivers/input/misc/capella_cm3602.c:110: error: for each function it
> appears in.)
> drivers/input/misc/capella_cm3602.c:110: error: 'IRQF_TRIGGER_FALLING'
> undeclared (first use in this function)
> drivers/input/misc/capella_cm3602.c:120: error: implicit declaration
> of function 'set_irq_wake'
> drivers/input/misc/capella_cm3602.c:131: error: implicit declaration
> of function 'free_irq'
> make[3]: *** [drivers/input/misc/capella_cm3602.o] Error 1
> make[2]: *** [drivers/input/misc] Error 2
> make[1]: *** [drivers/input] Error 2
> make: *** [drivers] Error 2
>
> =========================================================================== 
> ===========
>
> Any assistance would be appreciated. Am I missing something? Thanks!

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

Reply via email to