diff options
author | Phil Blundell <philb@gnu.org> | 2012-09-25 12:55:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-18 12:00:36 +0100 |
commit | 7632b44e7f487180811d47fbe9c29aa8e58868a2 (patch) | |
tree | 409e42e094843da4078daffa66a46952f6edddd4 /meta/classes/module-base.bbclass | |
parent | 1c2ffdf26bdb2e1443dddb143e0e96760e6572bf (diff) | |
download | openembedded-core-7632b44e7f487180811d47fbe9c29aa8e58868a2.tar.gz openembedded-core-7632b44e7f487180811d47fbe9c29aa8e58868a2.tar.bz2 openembedded-core-7632b44e7f487180811d47fbe9c29aa8e58868a2.zip |
module.bbclass: Move do_make_scripts() to module-base
It's sometimes useful to have this function available to recipes which
don't wish to use module.bbclass for whatever reason.
Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/module-base.bbclass')
-rw-r--r-- | meta/classes/module-base.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/module-base.bbclass b/meta/classes/module-base.bbclass index 9379bf87fa..210c47ccd9 100644 --- a/meta/classes/module-base.bbclass +++ b/meta/classes/module-base.bbclass @@ -26,3 +26,14 @@ KERNEL_AR = "${HOST_PREFIX}ar${KERNEL_ARSUFFIX} ${HOST_AR_KERNEL_ARCH}" # kernel modules are generally machine specific PACKAGE_ARCH = "${MACHINE_ARCH}" + +# +# Ensure the hostprogs are available for module compilation. Modules that +# inherit this recipe and override do_compile() should be sure to call +# do_make_scripts() or ensure the scripts are built independently. +# +do_make_scripts() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \ + -C ${STAGING_KERNEL_DIR} scripts +} |