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,

eg
https://forums.opensuse.org/forumdisplay.php/678-Programming-Scripting

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)

TSU

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

$ rpm -qf /lib/modules/$(uname -r)/build
kernel-default-devel-4.4.104-39.1.x86_64