Builds a simple Hello World module on target. Added to the defaults for core-image-sato-sdk. (From OE-Core rev: c61c3dee162aa1f5bf31b2a09d8b916dc1712056) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
353 B
C
20 lines
353 B
C
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
|
|
static int __init hello_init(void)
|
|
{
|
|
printk(KERN_INFO "Hello world!\n");
|
|
return 0;
|
|
}
|
|
|
|
static void __exit hello_cleanup(void)
|
|
{
|
|
printk(KERN_INFO "Cleaning up hellomod.\n");
|
|
}
|
|
|
|
module_init(hello_init);
|
|
module_exit(hello_cleanup);
|
|
|
|
MODULE_LICENSE("GPL");
|