make: add target to build the linux kernel module
Signed-off-by: Fabien Parent <fparent@baylibre.com>
diff --git a/Makefile b/Makefile
index 0df8602..f9e9772 100644
--- a/Makefile
+++ b/Makefile
@@ -266,3 +266,14 @@
$(MODULE_NAME_PREALLOC)-objs += $(PREALLOC_OBJS)
obj-m += $(MODULE_NAME_PREALLOC).o
endif
+
+all:
+ $(MAKE) -C $(KERNEL_SRC) M=`pwd`
+
+modules_install:
+ $(MAKE) -C $(KERNEL_SRC) M=`pwd` modules_install
+
+clean:
+ rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
+ rm -f Module.markers Module.symvers modules.order
+ rm -rf .tmp_versions Modules.symvers