[yocto] yocto Digest, Vol 75, Issue 73

praveen vattipalli praveen.vatt at gmail.com
Wed Dec 21 02:50:10 PST 2016


Thanks Alex.
I followed below procedure. Now i could compile hello_2.7

in build/conf/local.conf

INHERIT += "externalsrc"
EXTERNALSRC_pn-hello =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"
EXTERNALSRC_BUILD_pn-hello =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"

in hello_2.7.bb

EXTERNALSRC =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"
EXTERNALSRC_BUILD =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"

Thanks,
Praveen.

Message: 1
Date: Mon, 19 Dec 2016 15:41:44 +0200
From: Alexander Kanavin <alexander.kanavin at linux.intel.com>
To: yocto at yoctoproject.org
Subject: Re: [yocto] Fwd: error while compiling hello_2.7.bb
Message-ID: <25d33f10-e79c-1a60-5dac-a40bb647c1a7 at linux.intel.com>
Content-Type: text/plain; charset=windows-1252; format=flowed

On 12/19/2016 02:42 PM, praveen vattipalli wrote:
> I have hello_2.7.bb <http://hello_2.7.bb> file which contains as below
> vim hello_2.7.bb <http://hello_2.7.bb>
> DESCRIPTION = "GNU Helloworld application"
> SECTION = "test"
> LICENSE = "BSD"
>
> LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb"
> SRC_DIR ?=
> "/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/hello/hello_2.7"
> SRC_URI = "file://${SRC_DIR}"
>
> S = "${SRC_DIR}"
>
> do_compile (){
>         make prog
> }

You probably need to use externalsrc facility:
http://www.yoctoproject.org/docs/2.2/dev-manual/dev-
manual.html#building-software-from-an-external-source

Alex

On Mon, Dec 19, 2016 at 8:50 PM, <yocto-request at yoctoproject.org> wrote:

> Send yocto mailing list submissions to
>         yocto at yoctoproject.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.yoctoproject.org/listinfo/yocto
> or, via email, send a message with subject or body 'help' to
>         yocto-request at yoctoproject.org
>
> You can reach the person managing the list at
>         yocto-owner at yoctoproject.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of yocto digest..."
>
>
> Today's Topics:
>
>    1. Re: Fwd: error while compiling hello_2.7.bb (Alexander Kanavin)
>    2. Re: Build one package from a split package recipe (Thomas Thorne)
>    3. Re: setting up autobuilder on local machine (Jussi Kukkonen)
>    4. Re: setting up autobuilder on local machine (Mirza Krak)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 19 Dec 2016 15:41:44 +0200
> From: Alexander Kanavin <alexander.kanavin at linux.intel.com>
> To: yocto at yoctoproject.org
> Subject: Re: [yocto] Fwd: error while compiling hello_2.7.bb
> Message-ID: <25d33f10-e79c-1a60-5dac-a40bb647c1a7 at linux.intel.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> On 12/19/2016 02:42 PM, praveen vattipalli wrote:
> > I have hello_2.7.bb <http://hello_2.7.bb> file which contains as below
> > vim hello_2.7.bb <http://hello_2.7.bb>
> > DESCRIPTION = "GNU Helloworld application"
> > SECTION = "test"
> > LICENSE = "BSD"
> >
> > LIC_FILES_CHKSUM =
> > "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb"
> > SRC_DIR ?=
> > "/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/hello/hello_2.7"
> > SRC_URI = "file://${SRC_DIR}"
> >
> > S = "${SRC_DIR}"
> >
> > do_compile (){
> >         make prog
> > }
>
> You probably need to use externalsrc facility:
> http://www.yoctoproject.org/docs/2.2/dev-manual/dev-
> manual.html#building-software-from-an-external-source
>
> Alex
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 19 Dec 2016 14:13:46 +0000
> From: Thomas Thorne <Thomas.Thorne at net2edge.com>
> To: "Bipnesh, Abhinav (Abhinav)" <abhinavbipnesh at avaya.com>,
>         "yocto at yoctoproject.org" <yocto at yoctoproject.org>
> Subject: Re: [yocto] Build one package from a split package recipe
> Message-ID:
>         <DB6PR0701MB187973F62E2ADC0D6CD6D67BD3910 at DB6PR0701MB1879.
> eurprd07.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> ?  Now when I fire a bitbake command like "bitbake test" all the packages
> listed into the recipe get build. But sometime I need to build only one
> package say test1.
>
> ?
>
> ?  How that can be achieved as when I tried "bitbake test1" its reports
> below error
>
> ?  ERROR: Nothing PROVIDES test1'
>
> I think you would need to define a recipe for each target you wanted to
> build.  You could still have a top level recipe that depended on them all
> and caused them all to be generated.
>
> Thomas A. F. Thorne<mailto:Thomas.Thorne at Net2Edge.com>  Software
> Engineer  Net2Edge<http://www.net2edge.com/>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.yoctoproject.org/pipermail/yocto/
> attachments/20161219/48a387c4/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 19 Dec 2016 16:57:52 +0200
> From: Jussi Kukkonen <jussi.kukkonen at intel.com>
> To: Mirza Krak <mirza.krak at gmail.com>
> Cc: "yocto at yoctoproject.org" <yocto at yoctoproject.org>
> Subject: Re: [yocto] setting up autobuilder on local machine
> Message-ID:
>         <CAHiDW_HKOb6=jNPjxVNDap0xESSM9=OCBSr4nW7D9n
> FQbVH4qw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On 19 December 2016 at 15:28, Mirza Krak <mirza.krak at gmail.com> wrote:
> >
> > > Thank you for your fast responses. Generating the htpasswd file my
> > > self did the trick. Now I can login. The full command was (as you
> > > suggested I used the one in autobuilder git repo under ./bin):
> > >
> > >     ./htpasswd -b -c <path to htpasswd file> <user name> <secret
> password>
> > >
> > > Forced a build of my configuration now and hoping for the best :).
> >
> > And it was not green all the way.
> >
> > I get an error that I do not get how to get around. The error message is:
> >
> > ERROR: Unable to parse
> >
> /home/mirzak/project/yocto-autobuilder/yocto-autobuilder-
> mender-rpi/yocto-worker/nightly-mender-rpi/build/meta-
> mender/conf/layer.conf:
> > [Errno 2] file
> /home/mirzak/project/yocto-autobuilder/yocto-autobuilder-
> mender-rpi/yocto-worker/nightly-mender-rpi/build/meta-
> mender/conf/layer.conf
> > not found
> >
> > The error message I understand. But I do not understand why it adds
> > meta-mender to bblayers files. I did not tell it to do that, because
> > meta-mender contains layers that I want to include. Similar to
> > meta-openembedded (which is also added to bblayers).
> >
>
> I'm not an expert but your nightly-mender-rpi.conf contains this:
>     'layerdirs': ['meta-yocto', 'meta-raspberrypi',
> 'meta-mender/meta-mender-core', 'meta-mender/meta-mender-raspberrypi',
> 'oe-meta-go', 'meta-openembedded/meta-oe']
>
> Jussi
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.yoctoproject.org/pipermail/yocto/
> attachments/20161219/f49f1395/attachment-0001.html>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 19 Dec 2016 16:20:14 +0100
> From: Mirza Krak <mirza.krak at gmail.com>
> To: Jussi Kukkonen <jussi.kukkonen at intel.com>
> Cc: "yocto at yoctoproject.org" <yocto at yoctoproject.org>
> Subject: Re: [yocto] setting up autobuilder on local machine
> Message-ID:
>         <CALw8SCVQaVueELOYE+WneVaaVoiJdgep=jhV8Pg=TsCF+gT_
> PA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> 2016-12-19 15:57 GMT+01:00 Jussi Kukkonen <jussi.kukkonen at intel.com>:
> > On 19 December 2016 at 15:28, Mirza Krak <mirza.krak at gmail.com> wrote:
> >>
> >> > Thank you for your fast responses. Generating the htpasswd file my
> >> > self did the trick. Now I can login. The full command was (as you
> >> > suggested I used the one in autobuilder git repo under ./bin):
> >> >
> >> >     ./htpasswd -b -c <path to htpasswd file> <user name> <secret
> >> > password>
> >> >
> >> > Forced a build of my configuration now and hoping for the best :).
> >>
> >> And it was not green all the way.
> >>
> >> I get an error that I do not get how to get around. The error message
> is:
> >>
> >> ERROR: Unable to parse
> >>
> >> /home/mirzak/project/yocto-autobuilder/yocto-autobuilder-
> mender-rpi/yocto-worker/nightly-mender-rpi/build/meta-
> mender/conf/layer.conf:
> >> [Errno 2] file
> >> /home/mirzak/project/yocto-autobuilder/yocto-autobuilder-
> mender-rpi/yocto-worker/nightly-mender-rpi/build/meta-
> mender/conf/layer.conf
> >> not found
> >>
> >> The error message I understand. But I do not understand why it adds
> >> meta-mender to bblayers files. I did not tell it to do that, because
> >> meta-mender contains layers that I want to include. Similar to
> >> meta-openembedded (which is also added to bblayers).
> >>
> >
> > I'm not an expert but your nightly-mender-rpi.conf contains this:
> >     'layerdirs': ['meta-yocto', 'meta-raspberrypi',
> > 'meta-mender/meta-mender-core', 'meta-mender/meta-mender-raspberrypi',
> > 'oe-meta-go', 'meta-openembedded/meta-oe']
>
> That is correct. I add following:
>
>    meta-mender/meta-mender-raspberrypi
>    meta-mender/meta-mender-core
>
> And they are added to the bblayers.conf correctly.
>
> But I do not add "meta-mender" which is present in my bblayers.conf
> and is the cause of my error message. It seems to me like it is picked
> up from the "repos" section and hence the "magic" :)
>
> Best Regards
> Mirza
>
>
> ------------------------------
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
> End of yocto Digest, Vol 75, Issue 73
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161221/15d9df9e/attachment.html>


More information about the yocto mailing list