summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/module-base.bbclass11
-rw-r--r--meta/classes/module.bbclass11
2 files changed, 11 insertions, 11 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}"
26 26
27# kernel modules are generally machine specific 27# kernel modules are generally machine specific
28PACKAGE_ARCH = "${MACHINE_ARCH}" 28PACKAGE_ARCH = "${MACHINE_ARCH}"
29
30#
31# Ensure the hostprogs are available for module compilation. Modules that
32# inherit this recipe and override do_compile() should be sure to call
33# do_make_scripts() or ensure the scripts are built independently.
34#
35do_make_scripts() {
36 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
37 oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
38 -C ${STAGING_KERNEL_DIR} scripts
39}
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index 4098644c71..e8d32eb3f4 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -3,17 +3,6 @@ DEPENDS += "virtual/kernel"
3 3
4inherit module-base 4inherit module-base
5 5
6#
7# Ensure the hostprogs are available for module compilation. Modules that
8# inherit this recipe and override do_compile() should be sure to call
9# do_make_scripts() or ensure the scripts are built independently.
10#
11do_make_scripts() {
12 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
13 oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
14 -C ${STAGING_KERNEL_DIR} scripts
15}
16
17addtask make_scripts before do_compile 6addtask make_scripts before do_compile
18do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" 7do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
19do_make_scripts[deptask] = "do_populate_sysroot" 8do_make_scripts[deptask] = "do_populate_sysroot"