While compiling the release(27.1 and also 28.1) linux kernel, I faced many compilation errors. using the normal way of compiling kernel like below.
export ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu-
make -j4 Image
As it gave many compilation error, I had to add ccflags-y += -I./$(src)/ in several Makefiles.
For example, one of such makefile is
@@ -25,6 +25,7 @@ ccflags-y += -I$(srctree)/…/nvgpu-t19x/include
ccflags-y += -I$(srctree)/…/nvgpu-t19x/include/uapi
+ccflags-y += -I./(src)/ obj-(CONFIG_GK20A) := nvgpu.o
nvgpu-y := \
I am using ‘aarch64-unknown-linux-gnu-gcc (GCC) 4.8.5’.
Anyways I am able to compile and boot TX2 with release linux kernel after fixing build those errors.
How nvidia kernel team is compiling those releases.
I think there would be some special variable to be exported or something like that.
Build method given in l4t docs also tell me to do like what i did.
Any suggestion are greatly appreciated.
Thanks in advance.