```bitbake
require emlog.inc

inherit module

EXTRA_OEMAKE += " \
    KDIR=${STAGING_KERNEL_DIR} \
    KVER=${KERNEL_VERSION} \
"

do_compile() {
    oe_runmake modules
}
```

Use compile task from module bbclass
user
```bitbake
require emlog.inc

inherit module

EXTRA_OEMAKE += " \
    KDIR=${STAGING_KERNEL_DIR} \
    KVER=${KERNEL_VERSION} \
"

MAKE_TARGETS = "modules"
```
assistant