diff options
Diffstat (limited to 'classes/module.bbclass')
-rw-r--r-- | classes/module.bbclass | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/classes/module.bbclass b/classes/module.bbclass index 8ab92a5fef..eef98292a7 100644 --- a/classes/module.bbclass +++ b/classes/module.bbclass @@ -3,21 +3,24 @@ DEPENDS += "virtual/kernel" inherit module-base +MODULE_MAKE_FLAGS = '\ + KERNEL_PATH=${STAGING_KERNEL_DIR}\ + KERNEL_SRC=${STAGING_KERNEL_DIR}\ + KDIR=${STAGING_KERNEL_DIR}\ + KERNELDIR=${STAGING_KERNEL_DIR}\ + KERNEL_VERSION=${KERNEL_VERSION}\ + CC="${KERNEL_CC}" LD="${KERNEL_LD}"\ + AR="${KERNEL_AR}"\ + ' + module_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ - KERNEL_SRC=${STAGING_KERNEL_DIR} \ - KDIR=${STAGING_KERNEL_DIR} \ - KERNELDIR=${STAGING_KERNEL_DIR} \ - KERNEL_VERSION=${KERNEL_VERSION} \ - CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ - AR="${KERNEL_AR}" \ - ${MAKE_TARGETS} + oe_runmake ${MODULE_MAKE_FLAGS} ${MAKE_TARGETS} } module_do_install() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" CC="${KERNEL_CC}" LD="${KERNEL_LD}" modules_install + oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" ${MODULE_MAKE_FLAGS} modules_install } pkg_postinst_append () { |