diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-03-01 14:18:32 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-04 22:26:37 +0000 |
commit | 2140c9dfc3b58bcd2d18b5c72a9a8e757d226cd5 (patch) | |
tree | c44bdea5031e780c8794907fea0be37f945df4e9 /meta/recipes-kernel/hello-mod/hello-mod_0.1.bb | |
parent | 5c0df11a69cbc1d875a0905c9613d5f300b1f086 (diff) | |
download | poky-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/hello-mod_0.1.bb')
-rw-r--r-- | meta/recipes-kernel/hello-mod/hello-mod_0.1.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-kernel/hello-mod/hello-mod_0.1.bb b/meta/recipes-kernel/hello-mod/hello-mod_0.1.bb new file mode 100644 index 0000000000..bbd4984cd6 --- /dev/null +++ b/meta/recipes-kernel/hello-mod/hello-mod_0.1.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "hello-world-mod tests the module.bbclass mechanism." | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" | ||
4 | |||
5 | inherit module | ||
6 | |||
7 | PR = r0 | ||
8 | PV = "0.1" | ||
9 | |||
10 | SRC_URI = "file://Makefile \ | ||
11 | file://hello.c \ | ||
12 | file://COPYING \ | ||
13 | " | ||
14 | |||
15 | S = "${WORKDIR}" | ||