diff options
Diffstat (limited to 'meta/classes/module-base.bbclass')
-rw-r--r-- | meta/classes/module-base.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/module-base.bbclass b/meta/classes/module-base.bbclass index 64729770c7..9f3465eb9d 100644 --- a/meta/classes/module-base.bbclass +++ b/meta/classes/module-base.bbclass | |||
@@ -12,6 +12,9 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" | |||
12 | # we didn't pick the name. | 12 | # we didn't pick the name. |
13 | export KBUILD_OUTPUT = "${STAGING_KERNEL_BUILDDIR}" | 13 | export KBUILD_OUTPUT = "${STAGING_KERNEL_BUILDDIR}" |
14 | 14 | ||
15 | DEPENDS += "bc-native" | ||
16 | EXTRA_OEMAKE += " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"" | ||
17 | |||
15 | export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}" | 18 | export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}" |
16 | KERNEL_OBJECT_SUFFIX = ".ko" | 19 | KERNEL_OBJECT_SUFFIX = ".ko" |
17 | 20 | ||
@@ -22,6 +25,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
22 | # be called before do_compile. See module.bbclass for an example. | 25 | # be called before do_compile. See module.bbclass for an example. |
23 | do_make_scripts() { | 26 | do_make_scripts() { |
24 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS | 27 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
25 | make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \ | 28 | oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \ |
26 | -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts prepare | 29 | -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts prepare |
27 | } | 30 | } |