1. require xenomai.inc
  2.  
  3. DESCRIPTION = "Xenomai RT Supervisor"
  4. HOMEPAGE = "http://www.xenomai.org"
  5. SECTION = "kernel"
  6. PRIORITY = "optional"
  7. LICENSE = "GPL"
  8.  
  9.  
  10. LIC_FILES_CHKSUM = "file://include/COPYING;md5=60faa041c8d4a75ab87e115a9469d94d"
  11.  
  12. SRC_URI = "http://download.gna.org/xenomai/stable/xenomai-${PV}.tar.bz2"
  13.  
  14. TARGET_CC_ARCH += "${LDFLAGS}"
  15.  
  16. EXTRA_OECONF += "--include=${includedir}/${BPN} --disable-dox-doc --disable-dbx"
  17.  
  18. #S = "${WORKDIR}/xenomai-${PV}"
  19.  
  20. do_configure () {
  21. ./configure CFLAGS="-march=armv7-a -mfpu=vfp3" \
  22. LDFLAGS="-march=armv7-a -mfpu=vfp3" \
  23. --disable-dox-doc \
  24. --disable-dbx \
  25. --disable-doc-install \
  26. --enable-debug=no \
  27. --host=arm-linux-gnueabihf
  28. }
  29.  
  30. do_compile() {
  31. oe_runmake
  32. }
  33.  
  34. #do_install() {
  35. # oe_runmake 'DESTDIR=${D}' 'SUDO=/bin/true' install
  36. #}
  37.  
  38. fakeroot do_install() {
  39. oe_runmake "DESTDIR=${D}" install
  40. # rm -rf ${D}/xenomai/share/doc/
  41. }
  42.  
  43.  
  44. SRC_URI[md5sum] = "3dca1eca040486f8f165f5e340c7a25e"
  45. SRC_URI[sha256sum] = "93298af1263469098896ac0ce4f38066efe4d7dfbc4e6ed869a435ef0c9a1747"
  46.  
  47. #PACKAGES = "${PN}"
  48. #FILES_${PN} = "/dev/* /usr/*"
  49.  
  50. PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev"
  51. # We enumerate all directories excluding /usr/xenomai/share/ (it contains only
  52. # documentation which occupies about 33MB)
  53.  
  54. FILES_${PN}-dbg = "\
  55. /usr/src/debug \
  56. /usr/xenomai/bin/.debug \
  57. /usr/xenomai/bin/regression/native/.debug \
  58. /usr/xenomai/bin/regression/posix/.debug \
  59. /usr/xenomai/bin/regression/native+posix/.debug \
  60. /usr/xenomai/lib/.debug \
  61. /usr/xenomai/sbin/.debug"
  62.  
  63. FILES_${PN}-staticdev = "\
  64. /usr/xenomai/lib/*.a"
  65.  
  66. FILES_${PN}-dev = "\
  67. /dev/rtp* \
  68. /dev/rtheap \
  69. /usr/xenomai/bin \
  70. /usr/xenomai/include \
  71. /usr/xenomai/lib \
  72. /usr/xenomai/sbin"