linux-libc-headers.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. DESCRIPTION = "Sanitized set of kernel headers for the C library's use."
  2. SECTION = "devel"
  3. LICENSE = "GPLv2"
  4. LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
  5. python __anonymous () {
  6. major = d.getVar("PV",True).split('.')[0]
  7. if major == "3":
  8. d.setVar("HEADER_FETCH_VER", "3.0")
  9. else:
  10. d.setVar("HEADER_FETCH_VER", "2.6")
  11. }
  12. inherit kernel-arch
  13. SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.bz2"
  14. S = "${WORKDIR}/linux-${PV}"
  15. do_configure() {
  16. oe_runmake allnoconfig
  17. }
  18. do_compile () {
  19. }
  20. do_install() {
  21. oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}
  22. # Kernel should not be exporting this header
  23. rm -f ${D}${exec_prefix}/include/scsi/scsi.h
  24. # The ..install.cmd conflicts between various configure runs
  25. find ${D}${includedir} -name ..install.cmd | xargs rm -f
  26. }
  27. BBCLASSEXTEND = "nativesdk"
  28. #DEPENDS = "cross-linkage"
  29. RDEPENDS_${PN}-dev = ""
  30. RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
  31. INHIBIT_DEFAULT_DEPS = "1"
  32. DEPENDS += "unifdef-native"