OnePlusOSS / android_kernel_oneplus_msm8994

GPL Kernel Source for OnePlus 2
Other
139 stars 113 forks source link

How To Build Kernel? #2

Open flaviopace opened 9 years ago

flaviopace commented 9 years ago

I just cloned the kernel on my PC and now I want to build kernel.

Here details about steps used:

export CC=/home/fpace/Android/aarch64-linux-android-4.9/bin/aarch64-linux-android- export CROSS_COMPILE=/home/fpace/Android/aarch64-linux-android-4.9/bin/aarch64-linux-android- export ARCH=arm64 export SUBARCH=arm64 export PLATFORM=msm8994-OnePlus2

make defconfig

alias make="make -jgrep -c processor /proc/cpuinfo | gawk '{print $1*2+1}' ARCH=arm64"

PATH=${PATH}:/home/fpace/Android/aarch64-linux-android-4.9/bin/aarch64-linux-android-

make

This is the output:

In file included from include/linux/jump_label.h:70:0, from include/linux/static_key.h:1, from include/linux/tracepoint.h:20, from include/linux/module.h:18, from arch/arm64/mm/fault.c:21: /home/fpace/Android/android_kernel_oneplus_msm8994_5_1_1/arch/arm64/include/asm/jump_label.h: In function 'do_page_fault': /home/fpace/Android/android_kernel_oneplus_msm8994_5_1_1/arch/arm64/include/asm/jump_label.h:30:2: warning: asm operand 0 probably doesn't match constraints error, forbidden warning: jump_label.h:30 gmake[1]: * [arch/arm64/mm/fault.o] Error 1 gmake: * [arch/arm64/mm] Error 2

Where I'm wrong?

Thanks

joesweeney413 commented 8 years ago

export ARCH=arm export SUBARCH=arm