mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
5c0df11a69
commit
2140c9dfc3
15
meta/recipes-kernel/hello-mod/hello-mod_0.1.bb
Normal file
15
meta/recipes-kernel/hello-mod/hello-mod_0.1.bb
Normal file
@@ -0,0 +1,15 @@
|
||||
DESCRIPTION = "hello-world-mod tests the module.bbclass mechanism."
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
|
||||
|
||||
inherit module
|
||||
|
||||
PR = r0
|
||||
PV = "0.1"
|
||||
|
||||
SRC_URI = "file://Makefile \
|
||||
file://hello.c \
|
||||
file://COPYING \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
Reference in New Issue
Block a user