[oe-commits] [openembedded-core] 11/32: classes/module: allow substitution of the modules_install target name

git at git.openembedded.org git at git.openembedded.org
Wed Mar 2 22:40:12 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit effa6ce777540c5557e5cf904b48cc3369ee3f9f
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Mar 1 00:48:23 2016 +1300

    classes/module: allow substitution of the modules_install target name
    
    Quite a few external kernel modules I've found floating around don't
    have a modules_install target, but they do have an install target that
    basically differs only in name. To make it easier to build these just
    make this a MODULES_INSTALL_TARGET variable that you can set from the
    recipe - the alternative would be copy-and-paste the do_install
    definition from this class which is potentially fragile.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/module.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index 0952c0c..01c9309 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -6,6 +6,8 @@ do_make_scripts[depends] += "virtual/kernel:do_shared_workdir"
 
 EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
+MODULES_INSTALL_TARGET ?= "modules_install"
+
 module_do_compile() {
 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
 	oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR}   \
@@ -21,7 +23,7 @@ module_do_install() {
 	oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \
 	           CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
 	           O=${STAGING_KERNEL_BUILDDIR} \
-	           modules_install
+	           ${MODULES_INSTALL_TARGET}
 }
 
 EXPORT_FUNCTIONS do_compile do_install

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list