summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/hello-mod/files/Makefile
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2011-03-01 14:18:32 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-04 22:26:37 +0000
commit2140c9dfc3b58bcd2d18b5c72a9a8e757d226cd5 (patch)
treec44bdea5031e780c8794907fea0be37f945df4e9 /meta/recipes-kernel/hello-mod/files/Makefile
parent5c0df11a69cbc1d875a0905c9613d5f300b1f086 (diff)
downloadpoky-2140c9dfc3b58bcd2d18b5c72a9a8e757d226cd5.tar.gz
hello-mod: add a module for testing module.bbclass
The following patch creates a hello-mod recipe for building a trivial out-of-tree kernel module, hello-mod.ko. This demonstrates the hostprogs build modifications added to module.bbclass. When loaded and unloaded, the module prints a simple string to the console to demonstrate it was compiled correctly. Tested on qemux86 poky-image-sato and beagleboard poky-image-minimal (after adding hello-mod to the images). (From OE-Core rev: d4765569d51448e8918bb15e7ab342983344074a) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/hello-mod/files/Makefile')
-rw-r--r--meta/recipes-kernel/hello-mod/files/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-kernel/hello-mod/files/Makefile b/meta/recipes-kernel/hello-mod/files/Makefile
new file mode 100644
index 0000000000..4ded35fbc3
--- /dev/null
+++ b/meta/recipes-kernel/hello-mod/files/Makefile
@@ -0,0 +1,14 @@
1obj-m := hello.o
2
3SRC := $(shell pwd)
4
5all:
6 $(MAKE) -C $(KERNEL_SRC) M=$(SRC)
7
8modules_install:
9 $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
10
11clean:
12 rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
13 rm -f Module.markers Module.symvers modules.order
14 rm -rf .tmp_versions Modules.symvers