diff options
Diffstat (limited to 'meta/classes/module.bbclass')
-rw-r--r-- | meta/classes/module.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass index ad6f7af1bb..5cb8623a66 100644 --- a/meta/classes/module.bbclass +++ b/meta/classes/module.bbclass | |||
@@ -6,10 +6,11 @@ addtask make_scripts after do_patch before do_compile | |||
6 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" | 6 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" |
7 | do_make_scripts[deptask] = "do_populate_sysroot" | 7 | do_make_scripts[deptask] = "do_populate_sysroot" |
8 | 8 | ||
9 | EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}" | ||
10 | |||
9 | module_do_compile() { | 11 | module_do_compile() { |
10 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS | 12 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
11 | oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ | 13 | oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ |
12 | KERNEL_SRC=${STAGING_KERNEL_DIR} \ | ||
13 | KERNEL_VERSION=${KERNEL_VERSION} \ | 14 | KERNEL_VERSION=${KERNEL_VERSION} \ |
14 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ | 15 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ |
15 | AR="${KERNEL_AR}" \ | 16 | AR="${KERNEL_AR}" \ |
@@ -19,7 +20,6 @@ module_do_compile() { | |||
19 | module_do_install() { | 20 | module_do_install() { |
20 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS | 21 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
21 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \ | 22 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \ |
22 | KERNEL_SRC=${STAGING_KERNEL_DIR} \ | ||
23 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ | 23 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ |
24 | modules_install | 24 | modules_install |
25 | } | 25 | } |