7.7.1 and building kernel modules ...
... by default fails, like
$ make
make -C /lib/modules/4.7.9-64/build M=/home/knoppix/demo modules
make[1]: Entering directory '/usr/src/linux-headers-4.7.9-64'
make[2]: *** No rule to make target 'tools/objtool/objtool', needed by
'/home/knoppix/demo/hello.o'. Stop.
Makefile:1458: recipe for target '_module_/home/knoppix/demo' failed
make[1]: *** [_module_/home/knoppix/demo] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.7.9-64'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2
This is - more or less - a known problem, the objtool is missing (as far
as I can see it should be in the linux-headers-4.7.9-64 package). I
didn't try but I assume that with the kernel sources you can build your
own objtool. Objtool seems to be new in 4.6 and seems to depend on
CONFIG_STACK_VALIDATION.
So a possible workaround is to disable CONFIG_STACK_VALIDATION:
$ make CONFIG_STACK_VALIDATION=
make -C /lib/modules/4.7.9-64/build M=/home/knoppix/demo modules
make[1]: Entering directory '/usr/src/linux-headers-4.7.9-64'
CC [M] /home/knoppix/demo/hello.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/knoppix/demo/hello.mod.o
LD [M] /home/knoppix/demo/hello.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.7.9-64'
$
Reply to: