commit | author | age
|
17e726
|
1 |
SUMMARY = "My Custom Linux Kernel Hello Module" |
G |
2 |
DESCRIPTION = "${SUMMARY}" |
|
3 |
|
|
4 |
LICENSE = "GPLv2" |
|
5 |
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
|
6 |
|
|
7 |
SRC_URI = "file://Makefile \ |
|
8 |
file://hello.c \ |
|
9 |
" |
|
10 |
|
|
11 |
S = "${WORKDIR}" |
|
12 |
|
|
13 |
inherit module |
|
14 |
|
|
15 |
KERNEL_MODULE_AUTOLOAD = "hello" |
|
16 |
|
|
17 |
do_compile() { |
|
18 |
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
|
19 |
oe_runmake -C ${STAGING_KERNEL_DIR} M=${S} |
|
20 |
} |
|
21 |
|
|
22 |
do_install() { |
|
23 |
install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra |
|
24 |
install -m 0644 ${S}/hello.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ |
|
25 |
} |
|
26 |
|