module.bbclass: Move do_make_scripts() to module-base
PATCH 1/1 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 <[email protected]>
--- meta/classes/module-base.bbclass | 11 +++++++++++ meta/classes/module.bbclass | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-)
meta/classes/module-base.bbclass +11 -0
@@ -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 +}
meta/classes/module.bbclass +0 -11
@@ -3,17 +3,6 @@ DEPENDS += "virtual/kernel" inherit module-base -# -# 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 -} - addtask make_scripts before do_compile do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" do_make_scripts[deptask] = "do_populate_sysroot"
Signature · 1 line
1.7.10.4
Saul Wold
AppliedQuoted 41 lines · Phil Blundell
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 <[email protected]>--- meta/classes/module-base.bbclass | 11 +++++++++++ meta/classes/module.bbclass | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-)meta/classes/module-base.bbclass +11
-0@@ -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 +}meta/classes/module.bbclass +0
-4@@ -3,17 +3,6 @@ DEPENDS += "virtual/kernel" inherit module-base -# -# 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.
meta/classes/module.bbclass DEPENDS += "virtual/kernel" · line 8
Quoted 10 lines
meta/classes/module.bbclass +0
-7-# -do_make_scripts() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \ - -C ${STAGING_KERNEL_DIR} scripts -} - addtask make_scripts before do_compile do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" do_make_scripts[deptask] = "do_populate_sysroot"
Merged into OE-Core
Thanks
Sau!