When trying to compile a kernel in Xavier, got the following error:

/xavier/source/kernel/kernel-4.9$ make O=$TEGRA_KERNEL_OUT zImage

make[1]: Entering directory ‘/home/xqy/xavier/out’
arch/arm64/Makefile:40: LSE atomics not supported by binutils
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm64/Makefile:40: LSE atomics not supported by binutils
CHK include/config/kernel.release
Using /home/xqy/xavier/source/kernel/kernel-4.9 as source for kernel
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/home/xqy/xavier/source/kernel/kernel-4.9/kernel/bounds.c: In function ‘foo’:
/home/xqy/xavier/source/kernel/kernel-4.9/kernel/bounds.c:25:1: sorry, unimplemented: function profiling
}
^
/home/xqy/xavier/source/kernel/kernel-4.9/./Kbuild:45: recipe for target ‘kernel/bounds.s’ failed
make[2]: *** [kernel/bounds.s] Error 1
/home/xqy/xavier/source/kernel/kernel-4.9/Makefile:1070: recipe for target ‘prepare0’ failed
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory ‘/home/xqy/xavier/out’
Makefile:170: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2

Hi xuqiaoyan,

We documented the kernel compilation process on the following wiki:
https://developer.ridgerun.com/wiki/index.php?title=Xavier/JetPack_4.1/Compiling_Code

We ran into the same error and corrected it. By following the steps described on that wiki you should not get this error.

Please follow up the L4T document -> Kernel Customization.

Now,i have resolve the question,thanks a lot.