summaryrefslogtreecommitdiff
path: root/setup/Linux/arm/Makefile.tmpl.arm
diff options
context:
space:
mode:
Diffstat (limited to 'setup/Linux/arm/Makefile.tmpl.arm')
-rw-r--r--setup/Linux/arm/Makefile.tmpl.arm21
1 files changed, 21 insertions, 0 deletions
diff --git a/setup/Linux/arm/Makefile.tmpl.arm b/setup/Linux/arm/Makefile.tmpl.arm
new file mode 100644
index 0000000..a8f0df2
--- /dev/null
+++ b/setup/Linux/arm/Makefile.tmpl.arm
@@ -0,0 +1,21 @@
+include /etc/oss.conf
+
+EXTRA_CFLAGS += -I${OSSLIBDIR}/include/internals -I${OSSLIBDIR}/include/sys
+
+ifneq ($(KERNELRELEASE),)
+
+ obj-m := MODNAME.o
+
+else
+
+ #KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+ PWD := $(shell pwd)
+
+default:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+
+endif
+
+clean:
+ @rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z
+ @rm -rf .tmp_versions