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}.
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}.