SUMMARY = "My Custom Linux Kernel Hello Module"
|
DESCRIPTION = "${SUMMARY}"
|
|
LICENSE = "GPLv2"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
|
|
SRC_URI = "file://Makefile \
|
file://hello.c \
|
"
|
|
S = "${WORKDIR}"
|
|
inherit module
|
|
KERNEL_MODULE_AUTOLOAD = "hello"
|
|
do_compile() {
|
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
|
oe_runmake -C ${STAGING_KERNEL_DIR} M=${S}
|
}
|
|
do_install() {
|
install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
|
install -m 0644 ${S}/hello.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
|
}
|