summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/cmem/cmem-mod_git.bb
blob: 14c7edf3189708bd86d23c36882387779aa07671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
DESCRIPTION = "Kernel module for contiguous memory allocation from userspace"

include cmem.inc

# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR_append = "b"
PR = "${MACHINE_KERNEL_PR}"

inherit module

EXTRA_OEMAKE += '-f lu.mak KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX}" EXEC_DIR="${D}/lib/modules/${KERNEL_VERSION}/extra"'
MAKE_TARGETS = "module"

KERNEL_MODULE_AUTOLOAD += "cmemk"

do_install_prepend() {
    cp ${B}/src/cmem/module/Module.symvers ${B}/ || true
}