--- /dev/null
+KDIR=../out/target/product/generic/obj/PARTITIONS/kernel_intermediates/build
+ARCH=arm
+CROSS_COMPILE=arm-eabi-
+CROSS_PATH=$(PWD)/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
+CC=$(CROSS_PATH)/$(CROSS_COMPILE)gcc
+LD=$(CROSS_PATH)/$(CROSS_COMPILE)ld
+AR=$(CROSS_PATH)/$(CROSS_COMPILE)ar
+
+obj-m := debounce.o
+
+all:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+
+clean:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
--- /dev/null
+#include <linux/module.h>
+
+static int __init debounce_init(void)
+{
+ printk(KERN_INFO "Hello Milestone2!\n");
+ return 0;
+}
+
+static void __exit debounce_exit(void)
+{
+}
+
+module_init(debounce_init);
+module_exit(debounce_exit);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Michael Gernoth <michael@gernoth.net>");