mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-11 08:07:32 +00:00
The test is currently not hooked up, but it pulls the latest 4.9.x kernel image, builds a simple kernel module against it and then creates a test package containing the kernel module and a shell script. The shell script prints out the 'modinfo' and then tries to 'insmod' the module. It checks the output of 'dmesg' of the load succeeded. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
7 lines
167 B
Makefile
7 lines
167 B
Makefile
obj-m += hello_world.o
|
|
KVER=$(shell basename /usr/src/linux-headers-*)
|
|
all:
|
|
make -C /usr/src/$(KVER) M=$(PWD) modules
|
|
clean:
|
|
make -C /usr/src/$(KVER) M=$(PWD) clean
|