Kernel build script nvbuild.sh with output dir option not working

I ran into the same problem trying to build the kernel with output directory option. There seems to be an error in the nvbuild.sh. I was able to get the script to work by changing line 86:
from
O_OPT=(-O “${KERNEL_OUT_DIR}”)
to
O_OPT=(O=“${KERNEL_OUT_DIR}”)

1 Like