1

Cross Compile Hello.c Module for ARM device

view story
linux-howto

http://stackoverflow.com – I am trying to cross compile a simple Hello world program that I plan to upload as a module into an android ARM device. Below is the c code. #include<linux/init.h> #include <linux/module.h> #include <linux/kernel.h> MODULE_LICENSE("GPL"); MODULE_AUTHOR("CW"); MODULE_DESCRIPTION("Demo Hello"); static int init_module(void) { printk(KERN_ALERT "Hello World\n"); return 0; } static void cleanup_module(void) { printk(KERN_ALERT "Good Bye World\n"); } module_init(init_module); module_exit(cleanup_module); Below is the makefile. VERSION = 3 PATCHLEVEL = 2 S (HowTos)