Linux Device Driver
解決"scripts/mod/modpost: not found"問題
參考資訊:
1. 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