summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-11-28 15:27:50 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-11-28 15:27:50 +0300
commitc3ea8a26ced44cb1062846d601b5844027c8b417 (patch)
tree6d02c61b71fb201f96c30443da1d6b92bb56cea9 /meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile
parent27ebba749e6177f41ad840c1b0377dd8007e0747 (diff)
Add IMP
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile')
-rw-r--r--meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile b/meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile
new file mode 100644
index 0000000..2e26bfb
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-kernel/kernel-module-cmemdrv/files/Makefile
@@ -0,0 +1,14 @@
+obj-m := cmemdrv.o
+
+SRC := $(shell pwd)
+
+all:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC)
+
+modules_install:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) 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