I've started learning about building external Linux kernel modules, and in the documentation examples of kbuild (here) I've come across the line
KDIR ?= /lib/modules/$(shell uname -r)/build
which is then used in
make -C $(KDIR) M=$(PWD)
and sets the directory to the kernel source. Now, what's the meaing of that ?= operator? Google gives me nothing! Is that a conditional assignment? Sort of, "define variable as follows unless it already exists in the environment"?
Thanks!