Hello,
I am compiling kernel using the r31.0.1 public_release l4t kernel source. While compiling dtbs, I get below errors:
aaney@sahastrabahu:kernel-4.9 $ make dtbs
cp -u arch/arm64/boot/dts/
cp: missing destination file operand after ‘arch/arm64/boot/dts/’
Try 'cp --help' for more information.
make[1]: *** [dtbs] Error 1
make: *** [dtbs] Error 2
aaney@sahastrabahu:kernel-4.9 $
Diving through the code, it looks like the variable “tegra-dtstree” in kernel-4.9/scripts/Kbuild.include has wrong path.
In the r31 kernel source:
ifneq ($(NV_BUILD_KERNEL_DTS_ROOT),)
tegra-dtstree = $(NV_BUILD_KERNEL_DTS_ROOT)
else
tegra-dtstree = $(srctree)/../../hardware/nvidia
endif
I have fixed the issue by changing to below code:
ifneq ($(NV_BUILD_KERNEL_DTS_ROOT),)
tegra-dtstree = $(NV_BUILD_KERNEL_DTS_ROOT)
else
tegra-dtstree = $(srctree)/../hardware/nvidia
endif
Notice one less “…/” (up directory).