OE4T / meta-tegra

BSP layer for NVIDIA Jetson platforms, based on L4T
MIT License
420 stars 230 forks source link

nvidia-kernel-oot: fix a build issue #1759

Closed liuming50 closed 2 weeks ago

liuming50 commented 2 weeks ago

A build issue was observed as follows: | .../kernel-source/Makefile:672: include/config/auto.conf: No such file or directory | make[1]: [Makefile:226: __sub-make] Error 2 | make[1]: Leaving directory '.../kernel-source' | make: [Makefile:63: hwpm] Error 2

it's not always reproduced, but occasionally happens when we add patches to nvidia-kernel-oot.

The root cause of this problem is in nvidia-kernel-oot's Makefile, it goes into ${KERNEL_SRC} instead of ${STAGING_KERNEL_DIR} to build, which is wrong when building modules/dtbs, because there are no config files generated in kernel source.

Let's change ${KERNEL_SRC} to ${STAGING_KERNEL_DIR}.

madisongh commented 2 weeks ago

Thanks!