aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-01 21:37:29 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-01 21:37:29 +1200
commited609a3eb31f99ee02f7dbfbd6067a288e56b0b1 (patch)
tree2c2448f72c265d783039eaf94326417686a1617c /Makefile
downloadcds9k-ed609a3eb31f99ee02f7dbfbd6067a288e56b0b1.tar.xz
Initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5e23f84
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+obj-m := simple-mfd-spi.o
+obj-m += cds9k-gpio.o
+
+SRC := $(shell pwd)
+
+all:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC)
+
+clean:
+ rm -f *.o core .depend .*.cmd *.ko *.mod.c
+ rm -f Module.markers Module.symvers modules.order
+ rm -rf .tmp_versions Modules.symvers
+
+modules_install:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install