Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | inherit module-base kernel-module-split |
| 2 | |
| 3 | addtask make_scripts after do_patch before do_compile |
| 4 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" |
| 5 | do_make_scripts[depends] += "virtual/kernel:do_shared_workdir" |
| 6 | |
| 7 | EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}" |
| 8 | |
| 9 | module_do_compile() { |
| 10 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
| 11 | oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \ |
| 12 | KERNEL_VERSION=${KERNEL_VERSION} \ |
| 13 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ |
| 14 | AR="${KERNEL_AR}" \ |
| 15 | O=${STAGING_KERNEL_BUILDDIR} \ |
| 16 | ${MAKE_TARGETS} |
| 17 | } |
| 18 | |
| 19 | module_do_install() { |
| 20 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
| 21 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \ |
| 22 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ |
| 23 | O=${STAGING_KERNEL_BUILDDIR} \ |
| 24 | modules_install |
| 25 | } |
| 26 | |
| 27 | EXPORT_FUNCTIONS do_compile do_install |
| 28 | |
| 29 | # add all splitted modules to PN RDEPENDS, PN can be empty now |
| 30 | KERNEL_MODULES_META_PACKAGE = "${PN}" |
| 31 | FILES_${PN} = "" |
| 32 | ALLOW_EMPTY_${PN} = "1" |