Files
2025-08-12 23:12:57 +02:00

15 lines
334 B
Makefile
Executable File

KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
KBUILD_OPTIONS += MODNAME?=st54spi_gpio
M ?= $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS) $(KBUILD_EXTRA_SYMBOLS)
modules_install:
$(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(M) modules_install
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) clean