Permalink
Browse files

Added steps for compiling pwm speaker driver

  • Loading branch information...
1 parent 9aeaa69 commit 39dd2096e37443d635514f1991ec57a284cc21f9 neo committed Aug 9, 2010
Showing with 20 additions and 19 deletions.
  1. +20 −19 Makefile
View
@@ -1,20 +1,21 @@
-# cross-compile module makefile
-
-ifneq ($(KERNELRELEASE),)
- obj-m := pwm.o
-else
- PWD := $(shell pwd)
-
-default:
-ifeq ($(strip $(KERNELDIR)),)
- $(error "KERNELDIR is undefined!")
-else
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
-endif
-
-
-clean:
- rm -rf *~ *.ko *.o *.mod.c modules.order Module.symvers .pwm* .tmp_versions
-
-endif
+# cross-compile module makefile
+
+ifneq ($(KERNELRELEASE),)
+ obj-m := pwm.o pwmsp.o pwmsp_lib.o
+else
+ SUBDIRS := $(shell pwd)
+
+default:
+ifeq ($(strip $(KERNELDIR)),)
+ $(error "KERNELDIR is undefined!")
+else
+ $(MAKE) -C $(KERNELDIR) M=$(SUBDIRS) modules
+endif
+
+
+clean:
+ rm -rf *~ *.ko *.o *.mod.c modules.order Module.symvers .pwm* .tmp_versions
+
+endif
+

0 comments on commit 39dd209

Please sign in to comment.