No /lib/modules/$(uname -r)/build

I want write a hello.ko by using opensuse
but I can’t find the path of /lib/modules/$(uname -r)/build (no build directory in it)
However , centos 7 has it
what can I do to make modules?

For a question like this,
You’d probably do better asking in a Development Forum,


For starters,
For building a kernel module I suppose you need to install the source for your kernel.
You’ll probably also want to install the C development pattern (zypper or YaST Software Manager)


Not the kernel source, but kernel-xxx-devel.

$ rpm -qf /lib/modules/$(uname -r)/build