require xenomai.inc
DESCRIPTION = "Xenomai RT Supervisor"
HOMEPAGE = "http://www.xenomai.org"
SECTION = "kernel"
PRIORITY = "optional"
LICENSE = "GPL"
LIC_FILES_CHKSUM = "file://include/COPYING;md5=60faa041c8d4a75ab87e115a9469d94d"
SRC_URI = "http://download.gna.org/xenomai/stable/xenomai-${PV}.tar.bz2"
TARGET_CC_ARCH += "${LDFLAGS}"
EXTRA_OECONF += "--include=${includedir}/${BPN} --disable-dox-doc --disable-dbx"
#S = "${WORKDIR}/xenomai-${PV}"
do_configure () {
./configure CFLAGS="-march=armv7-a -mfpu=vfp3" \
LDFLAGS="-march=armv7-a -mfpu=vfp3" \
--disable-dox-doc \
--disable-dbx \
--disable-doc-install \
--enable-debug=no \
--host=arm-linux-gnueabihf
}
do_compile() {
oe_runmake
}
#do_install() {
# oe_runmake 'DESTDIR=${D}' 'SUDO=/bin/true' install
#}
fakeroot do_install() {
oe_runmake "DESTDIR=${D}" install
# rm -rf ${D}/xenomai/share/doc/
}
SRC_URI[md5sum] = "3dca1eca040486f8f165f5e340c7a25e"
SRC_URI[sha256sum] = "93298af1263469098896ac0ce4f38066efe4d7dfbc4e6ed869a435ef0c9a1747"
#PACKAGES = "${PN}"
#FILES_${PN} = "/dev/* /usr/*"
PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev"
# We enumerate all directories excluding /usr/xenomai/share/ (it contains only
# documentation which occupies about 33MB)
FILES_${PN}-dbg = "\
/usr/src/debug \
/usr/xenomai/bin/.debug \
/usr/xenomai/bin/regression/native/.debug \
/usr/xenomai/bin/regression/posix/.debug \
/usr/xenomai/bin/regression/native+posix/.debug \
/usr/xenomai/lib/.debug \
/usr/xenomai/sbin/.debug"
FILES_${PN}-staticdev = "\
/usr/xenomai/lib/*.a"
FILES_${PN}-dev = "\
/dev/rtp* \
/dev/rtheap \
/usr/xenomai/bin \
/usr/xenomai/include \
/usr/xenomai/lib \
/usr/xenomai/sbin"