Due to lack of options to "make", the module build doesn't use KV_DIR and KV_OUT_DIR. Reproducible: Always Steps to Reproduce: To fix, change the BUILD_PARAMS line in the pkg_setup function to read: BUILD_PARAMS="KSRC=${ROOT}${KV_DIR} KERNEL_DIR=${ROOT}${KV_DIR} O=${KV_OUT_DIR} TOUT=${TMP}/tmp-gas-check"
Thanks for reporting and providing a solution!