Quantcast
Channel: Active questions tagged kernel-modules - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 1183

build is missing for compiling kernel module

$
0
0

this is my first time trying to create a kernel module, apparently after creating a module I need to follow these steps to compile it:

echo "obj-m := Hello.c"> Makefile
make -C /lib/modules/`uname -r`/build M=$PWD modules

here's my problem, there is no "build" in "/lib/modules/uname -r/" directory!

what am I missing here?


Viewing all articles
Browse latest Browse all 1183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>