summaryrefslogtreecommitdiffstats
path: root/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
new file mode 100644
index 0000000..b7f2191
--- /dev/null
+++ b/kernel/Makefile
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0
+include $(PWD)/Kbuild.in
+
+ifndef KDIR
+ KDIR = /lib/modules/$(shell uname -r)/build
+endif
+
+all:
+ make -C "$(KDIR)" "M=$(PWD)" modules
+
+clean:
+ make -C "$(KDIR)" "M=$(PWD)" clean