From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe002.messaging.microsoft.com [216.32.180.185]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9F3F7E01846 for ; Fri, 8 Nov 2013 08:00:26 -0800 (PST) Received: from mail120-co1-R.bigfish.com (10.243.78.252) by CO1EHSOBE010.bigfish.com (10.243.66.73) with Microsoft SMTP Server id 14.1.225.22; Fri, 8 Nov 2013 16:00:25 +0000 Received: from mail120-co1 (localhost [127.0.0.1]) by mail120-co1-R.bigfish.com (Postfix) with ESMTP id 3BA35B000E1; Fri, 8 Nov 2013 16:00:25 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -8 X-BigFish: VS-8(z579ehz98dI9371I936eI1102I148cI1432I1a09J4015Id5b2izz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h17326ah8275bh8275dh1de097h186068hz2dh2a8h839h947hd25he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19b4h19c3h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1f5fh1fe8h1ff5h209eh1155h) Received: from mail120-co1 (localhost.localdomain [127.0.0.1]) by mail120-co1 (MessageSwitch) id 138392642376825_24076; Fri, 8 Nov 2013 16:00:23 +0000 (UTC) Received: from CO1EHSMHS002.bigfish.com (unknown [10.243.78.243]) by mail120-co1.bigfish.com (Postfix) with ESMTP id D915B4C00AA; Fri, 8 Nov 2013 16:00:19 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO1EHSMHS002.bigfish.com (10.243.66.12) with Microsoft SMTP Server (TLS) id 14.16.227.3; Fri, 8 Nov 2013 16:00:19 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server (TLS) id 14.3.158.2; Fri, 8 Nov 2013 16:00:17 +0000 Received: from [10.29.244.25] ([10.29.244.25]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id rA8G0Fj6002253; Fri, 8 Nov 2013 09:00:16 -0700 Message-ID: <527D0946.9090006@freescale.com> Date: Fri, 8 Nov 2013 13:54:46 -0200 From: Daiane Angolini Organization: Freescale Semiconductor User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: br jer References: <527B8C95.8000402@freescale.com> In-Reply-To: X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Cc: meta-freescale@yoctoproject.org Subject: Re: Build a gstreamer application with yocto for imx6 Wandboard X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2013 16:00:29 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 07-11-2013 18:31, br jer wrote: > Daiane, > > Thanks for sending my the examples, I am sorry that I am not grasping > the examples. > > Looking at the "tiny example" below, it inherits autotools, so that is > good, as I am using autools in my project to generate Makefile as well. > > My questions: > - Where in this recipe below points to my project directory? > - Is ${FSL_MIRROR}/${PN} where I place my project? Or The "source" of your package is on SRC_URI variable. you may point a git uri, or a mirror to you tarball. you can have SRC_URI = "file://tarball.tar.gz" if you want > - where in the build/tmp/work/... area should I place my project? In my > case, what environment variables shall I use? it depends on how you make your recipe PACKAGE_ARCH = "${MACHINE_ARCH}" says it's a package that only work for that machine, so it will be placed on tmp/work/machine_name. But, a lot of packages are commom for any architecture, for example ssh. > > How can I skip the SRC_URI checksums? I don't need that as I am placing > trusted source in the the tree. hum, you cannot. Please, use the checksums :D <3 (imagine that you know the source is trusted, but yocto need to "download" and "unpack" it, so you added 2 steps of "untrusted" behavior.) > > Would BB automatically run ./configure , make and make install ? yes, but only if you inherit autotools > > > How would this recipe get called ? entry in my conf.local? bitbake mysweetheartpackage when you're developing should be enough. If you want it installed on your image, you add it on your image install. easiest/dirty way is local.conf CORE_IMAGE_EXTRA_INSTALL. > > Many Thanks, > > Norman > > > # Copyright (C) 2013 Freescale Semiconductor > # Released under the MIT license (see COPYING.MIT for the terms) > DESCRIPTION = "Freescale Multimedia VPU wrapper" > DEPENDS = "imx-vpu" > LICENSE = "Proprietary" > SECTION = "multimedia" > LIC_FILES_CHKSUM = "file://EULA.txt;md5=93b784b1c11b3fffb1638498a8dde3f6" > > # FIXME: Inspecting the source code the content is in fact 1.0.40 > SRC_URI = "${FSL_MIRROR}/${PN}-3.10.9-1.0.0 > .bin;fsl-eula=true" > SRC_URI[md5sum] = "25891ef8d92e82d9b2e999a74a327971" > SRC_URI[sha256sum] = > "84d610c478963e7b6a9660a38547b5365ca910159972b3860d7356aee33b9b41" > > S = "${WORKDIR}/${PN}-3.10.9-1.0.0 " > > inherit fsl-eula-unpack autotools pkgconfig > > do_install_append() { > # FIXME: Drop examples for now > rm -r ${D}${datadir}/imx-mm > } > > PACKAGE_ARCH = "${MACHINE_ARCH}" > COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6s)" > > > > > > On Thu, Nov 7, 2013 at 4:50 AM, Daiane Angolini > > > wrote: > > On 07-11-2013 02:16, br jer wrote: > > I am using the "master" branch of Yocto. I have a gstreamer > application > that is compiled and tested on Ubuntu. I have a Makefile for this > application. The Yocto build I use fsl-image-test and added a few > plugins in my conf.local. I have tested all the > plugins/pipeline that > is needed for this app with gst-launch. > > I just want to run a quick test of the code on the wandboard, > what is > the fastest way to do a make and produce a executable ? I > looked at the > Yocto manual and it seems that it calls for creating a recipe > etc. Is > there a simple template that I can use? > > > You can try to use your already built binary into any rootfs. > > If you decide to try to make the recipe, you can share here your > problems, but, please take care of proprietary stuff. > > You can try at first an tiny example: > http://git.yoctoproject.org/__cgit/cgit.cgi/meta-fsl-arm/__tree/recipes-multimedia/__libfslvpuwrap/libfslvpuwrap_1.__0.40.bb?h=master-next&id=__9135a32b50800cac2c3feb0bac1f19__c3d6743add > > > > and then go to a more complex one: > > http://git.yoctoproject.org/__cgit/cgit.cgi/meta-fsl-arm/__tree/recipes-multimedia/gst-__plugins/gst-fsl-plugin_3.0.9.__bb?h=master-next&id=__9135a32b50800cac2c3feb0bac1f19__c3d6743add > > > > Daiane > > > Thanks, > Norman > > > _________________________________________________ > meta-freescale mailing list > meta-freescale@yoctoproject.__org > > https://lists.yoctoproject.__org/listinfo/meta-freescale > > > > > -- > Daiane > > -- Daiane