Hi,

I'm just working on it. I'm newbie in Yocto, but those recipes seem to be 
working to me.
I use Freescale Linux SDK (based on Yocto) for QorIQ processors. 

Recipe for building kernel:

#-------------------------------------------------------------------------------

inherit kernel
require recipes-kernel/linux/linux-dtb.inc

DESCRIPTION = "Linux kernel 3.2.21 patched by Xenomai 2.6.1"
SECTION = "kernel"
LICENSE = "GPLv2"
DEPENDS = "xenomai-libs-2.6.1"

WW_KERNEL_VER = 3.2.21
WW_XENOMAI_VER = 2.6.1

S = ${WORKDIR}/linux-${WW_KERNEL_VER}

LIC_FILES_CHKSUM = 
"file://${WORKDIR}/linux-${WW_KERNEL_VER}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

# require recipes-kernel/xenomai/linux-xenomai-${PV}.inc

SRC_URI = 
"http://www.kernel.org/pub/linux/kernel/v3.x/linux-${WW_KERNEL_VER}.tar.bz2 \
                
http://download.gna.org/xenomai/stable/xenomai-${WW_XENOMAI_VER}.tar.bz2 \
                file://missing-ipipe-include-in-gpio-mpc8xxx.c.patch    \   
        "

# Find the kernel config file in the right directory.
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

# Name of the Woodward kernel configuration file
WW_KERNEL_CFG_FILE := "config-${WW_KERNEL_VER}-ipipe"

# use this ww kernel configuration
SRC_URI += "file://${WW_KERNEL_CFG_FILE}"

# prevent the fsl-layer kernel_do_configure_prepend() from using the kernel 
defconfig,
#  our config should be used instead
KERNEL_DEFCONFIG = "${WORKDIR}/${WW_KERNEL_CFG_FILE}"

do_configure_prepend() {
        # copy desired defconfig so we pick it up for the real 
kernel_do_configure
        echo "Copying WW defconfig"     
        cp ${KERNEL_DEFCONFIG} ${B}/.config

        cd ${WORKDIR}/xenomai-${WW_XENOMAI_VER}
        ./scripts/prepare-kernel.sh --arch=powerpc 
--linux=${WORKDIR}/linux-${WW_KERNEL_VER} 
--ipipe=${WORKDIR}/xenomai-${WW_XENOMAI_VER}/ksrc/arch/powerpc/patches/ipipe-core-${WW_KERNEL_VER}-powerpc-1.patch

        cd ${WORKDIR}/linux-${WW_KERNEL_VER}
}

require recipes-kernel/linux/linux-tools.inc
#-------------------------------------------------------------------------------

Xenomai libraries (xenomai-libs.bb):

#-------------------------------------------------------------------------------
DESCRIPTION = "Xenomai libraries"
SECTION = "kernel"
LICENSE = "GPLv2"
HOMEPAGE = "http://xenomai.org/";
DEPENDS = ""
LIC_FILES_CHKSUM = "file://CREDITS;md5=7845f4d8e94ed36651ecff554dd2b0be"

S = "${WORKDIR}/xenomai-${PV}"

PR = "r0"

SRC_URI = "http://download.gna.org/xenomai/stable/xenomai-${PV}.tar.bz2 \
           "

do_configure () {
        ./configure --enable-smp --host=powerpc-fsl-linux-gnuspe
}

do_compile() {
        oe_runmake
}

do_install() {
        oe_runmake DESTDIR=${D} install
        rm -rf ${D}/xenomai/share/doc/
}

PACKAGES = "${PN}"
# We enumerate all directories excluding /usr/xenomai/share/ (it contains only 
documentation which occupies about 33MB)
FILES_${PN} = "/dev/rtp* /dev/rtheap /usr/xenomai/bin /usr/xenomai/include 
/usr/xenomai/lib /usr/xenomai/sbin"
#-------------------------------------------------------------------------------


Pozdrawiam / Best Regards / Mit freundlichen Grüßen 
Łukasz Zemła

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Flavio Castro Alves Filho
Sent: Saturday, October 13, 2012 1:47 AM
To: [email protected]
Subject: [Xenomai] Xenomai on Yocto/Openembedded

Hello,

Has anybody tried to create a package for Xenomai for Yocto or Openembedded?

Best regards,

Flavio

--
Flavio de Castro Alves Filho

[email protected]
www.linuxembarcado.com
Twitter: http://twitter.com/#!/fraviofii LinkedIn profile: 
www.linkedin.com/in/flaviocastroalves

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai


***
The information in this email is confidential and intended solely for the 
individual or entity to whom it is addressed. If you have received this email 
in error please notify the sender by return e-mail, delete this email, and 
refrain from any disclosure or action based on the information.
***
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to