參考資訊:
https://unix.stackexchange.com/questions/169806/no-build-scripts-available-when-compiling-module-outside-of-linux-source-tree
問題如下:
WARNING: Symbol version dump "Module.symvers" is missing. Modules may not have dependencies or modversions. MODPOST samples/bpf/Module.symvers /bin/sh: 1: scripts/mod/modpost: not found make[1]: *** [scripts/Makefile.modpost:124: samples/bpf/Module.symvers] Error 127 make: *** [Makefile:1759: modules] Error 2
解法如下:
$ make modules_prepare