diff options
author | Cliff Brake <cbrake@bec-systems.com> | 2009-01-27 11:16:03 -0500 |
---|---|---|
committer | Cliff Brake <cbrake@bec-systems.com> | 2009-01-27 13:52:02 -0500 |
commit | c1b8471c3635c2345e569246fbe144c0a3af513b (patch) | |
tree | 44503e410700dc66d1a1eb0847bd3b25afd6a752 /classes | |
parent | 45e86d87f7031192f610bd3b65bdfface8aff2b1 (diff) |
module.bbclass: add common make options to module_do_install()
the problem was that KERNELDIR was not getting passed to
"make install", so the host kernel src dir got used, and
the wrong kernel version was then extracted.
Diffstat (limited to 'classes')
-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 () { |