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.kana...@linux.intel.com> To: yocto@yoctoproject.org Subject: Re: [yocto] Fwd: error while compiling hello_2.7.bb Message-ID: <25d33f10-e79c-1a60-5dac-a40bb647c...@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-requ...@yoctoproject.org> wrote: > Send yocto mailing list submissions to > yocto@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-requ...@yoctoproject.org > > You can reach the person managing the list at > yocto-ow...@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.kana...@linux.intel.com> > To: yocto@yoctoproject.org > Subject: Re: [yocto] Fwd: error while compiling hello_2.7.bb > Message-ID: <25d33f10-e79c-1a60-5dac-a40bb647c...@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.tho...@net2edge.com> > To: "Bipnesh, Abhinav (Abhinav)" <abhinavbipn...@avaya.com>, > "yocto@yoctoproject.org" <yocto@yoctoproject.org> > Subject: Re: [yocto] Build one package from a split package recipe > Message-ID: > <DB6PR0701MB187973F62E2ADC0D6CD6D67BD3910@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.tho...@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.kukko...@intel.com> > To: Mirza Krak <mirza.k...@gmail.com> > Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org> > Subject: Re: [yocto] setting up autobuilder on local machine > Message-ID: > <CAHiDW_HKOb6=jNPjxVNDap0xESSM9=OCBSr4nW7D9n > fqbvh...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > On 19 December 2016 at 15:28, Mirza Krak <mirza.k...@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.k...@gmail.com> > To: Jussi Kukkonen <jussi.kukko...@intel.com> > Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org> > Subject: Re: [yocto] setting up autobuilder on local machine > Message-ID: > <CALw8SCVQaVueELOYE+WneVaaVoiJdgep=jhV8Pg=TsCF+gT_ > p...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > 2016-12-19 15:57 GMT+01:00 Jussi Kukkonen <jussi.kukko...@intel.com>: > > On 19 December 2016 at 15:28, Mirza Krak <mirza.k...@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@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > > > End of yocto Digest, Vol 75, Issue 73 > ************************************* >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto