module-base.bbclass 768 B

12345678910111213141516171819202122232425
  1. #
  2. # Copyright OpenEmbedded Contributors
  3. #
  4. inherit kernel-arch
  5. # We do the dependency this way because the output is not preserved
  6. # in sstate, so we must force do_compile to run (once).
  7. do_configure[depends] += "make-mod-scripts:do_compile"
  8. export OS = "${TARGET_OS}"
  9. export CROSS_COMPILE = "${TARGET_PREFIX}"
  10. # This points to the build artefacts from the main kernel build
  11. # such as .config and System.map
  12. # Confusingly it is not the module build output (which is ${B}) but
  13. # we didn't pick the name.
  14. export KBUILD_OUTPUT = "${STAGING_KERNEL_BUILDDIR}"
  15. export KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}"
  16. KERNEL_OBJECT_SUFFIX = ".ko"
  17. # kernel modules are generally machine specific
  18. PACKAGE_ARCH = "${MACHINE_ARCH}"