make-mod-scripts_1.0.bb 816 B

12345678910111213141516171819202122232425262728
  1. SUMMARY = "Build tools needed by external modules"
  2. LICENSE = "GPLv2"
  3. LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
  4. inherit kernel-arch
  5. inherit pkgconfig
  6. PACKAGE_ARCH = "${MACHINE_ARCH}"
  7. S = "${WORKDIR}"
  8. do_configure[depends] += "virtual/kernel:do_shared_workdir"
  9. do_compile[depends] += "virtual/kernel:do_compile_kernelmodules"
  10. # Build some host tools under work-shared. CC, LD, and AR are probably
  11. # not used, but this is the historical way of invoking "make scripts".
  12. #
  13. do_configure() {
  14. unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
  15. make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
  16. -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts
  17. }
  18. # There is no reason to build this on its own.
  19. #
  20. EXCLUDE_FROM_WORLD = "1"