* Hello world-Checksum error
@ 2013-05-28 11:46 Zafrullah Syed
2013-05-28 11:57 ` Satya Swaroop Damarla
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Zafrullah Syed @ 2013-05-28 11:46 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]
Hi all,
I am trying to add Hello world recipe, everything was going good but after
giving bitbake <target> command it breaks with the following error:
siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake gumstix-console-image
*
ERROR: ExpansionError during parsing
/home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb:
Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which
triggered exception NoMethodError: Could not find a fetcher which supports
the URL: '${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz'
ERROR: Command execution failed: Exited with 1
*My hello.bb file is*:
DESCRIPTION = "GNU Helloworld application"
SECTION = "examples"
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
PR = "r0"
SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz"
inherit autotools gettext
I downloaded hello-2.7.tar.gz -> extracted -> ran md5sum against COPYING ->
got md5 -> added that md5 to my hello.bb file.
Any ideas where I am doing wrong?
--
Regards,
Zafrullah Syed
[-- Attachment #2: Type: text/html, Size: 2019 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Hello world-Checksum error 2013-05-28 11:46 Hello world-Checksum error Zafrullah Syed @ 2013-05-28 11:57 ` Satya Swaroop Damarla 2013-05-28 12:03 ` Zafrullah Syed 2013-05-28 12:05 ` Usman, Fahad 2013-05-28 12:14 ` Paul Eggleton 2 siblings, 1 reply; 18+ messages in thread From: Satya Swaroop Damarla @ 2013-05-28 11:57 UTC (permalink / raw) To: Zafrullah Syed, yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 1514 bytes --] Hi, Please remove the $ sign in SRC_URI and retry building the package.. I think it is the issue On Tue, May 28, 2013 at 1:46 PM, Zafrullah Syed <zafrullahmehdi@gmail.com>wrote: > Hi all, > > I am trying to add Hello world recipe, everything was going good but after > giving bitbake <target> command it breaks with the following error: > > siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake > gumstix-console-image* > > ERROR: ExpansionError during parsing > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb: > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which > triggered exception NoMethodError: Could not find a fetcher which supports > the URL: '${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' > ERROR: Command execution failed: Exited with 1 > > > *My hello.bb file is*: > > DESCRIPTION = "GNU Helloworld application" > SECTION = "examples" > LICENSE = "GPLv3+" > LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > PR = "r0" > SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz" > inherit autotools gettext > > I downloaded hello-2.7.tar.gz -> extracted -> ran md5sum against COPYING > -> got md5 -> added that md5 to my hello.bb file. > Any ideas where I am doing wrong? > > > -- > Regards, > Zafrullah Syed > > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > > [-- Attachment #2: Type: text/html, Size: 2945 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 11:57 ` Satya Swaroop Damarla @ 2013-05-28 12:03 ` Zafrullah Syed 0 siblings, 0 replies; 18+ messages in thread From: Zafrullah Syed @ 2013-05-28 12:03 UTC (permalink / raw) To: Satya Swaroop Damarla; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 2177 bytes --] I removed $ sign in SRC_URI and ran build again, following is the same error: ERROR: ExpansionError during parsing /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb: Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which triggered exception NoMethodError: Could not find a fetcher which supports the URL: '{ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' ERROR: Command execution failed: Exited with 1 On Tue, May 28, 2013 at 1:57 PM, Satya Swaroop Damarla < satyaswaroop.damarla@gmail.com> wrote: > Hi, > > Please remove the $ sign in SRC_URI and retry building the package.. I > think it is the issue > > > On Tue, May 28, 2013 at 1:46 PM, Zafrullah Syed <zafrullahmehdi@gmail.com>wrote: > >> Hi all, >> >> I am trying to add Hello world recipe, everything was going good but >> after giving bitbake <target> command it breaks with the following error: >> >> siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake >> gumstix-console-image* >> >> ERROR: ExpansionError during parsing >> /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/ >> hello.bb: Failure expanding expression >> ${@bb.fetch.get_checksum_file_list(d)} which triggered exception >> NoMethodError: Could not find a fetcher which supports the URL: '${ >> ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' >> ERROR: Command execution failed: Exited with 1 >> >> >> *My hello.bb file is*: >> >> DESCRIPTION = "GNU Helloworld application" >> SECTION = "examples" >> LICENSE = "GPLv3+" >> LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" >> PR = "r0" >> SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz" >> inherit autotools gettext >> >> I downloaded hello-2.7.tar.gz -> extracted -> ran md5sum against COPYING >> -> got md5 -> added that md5 to my hello.bb file. >> Any ideas where I am doing wrong? >> >> >> -- >> Regards, >> Zafrullah Syed >> >> >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/yocto >> >> > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 4430 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 11:46 Hello world-Checksum error Zafrullah Syed 2013-05-28 11:57 ` Satya Swaroop Damarla @ 2013-05-28 12:05 ` Usman, Fahad 2013-05-28 12:14 ` Paul Eggleton 2 siblings, 0 replies; 18+ messages in thread From: Usman, Fahad @ 2013-05-28 12:05 UTC (permalink / raw) To: Zafrullah Syed; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 781 bytes --] On 05/28/2013 04:46 PM, Zafrullah Syed wrote: > *My hello.bb <http://hello.bb> file is*: > > DESCRIPTION = "GNU Helloworld application" > SECTION = "examples" > LICENSE = "GPLv3+" > LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > PR = "r0" > SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz > <ftp://ftp.gnu.org/gnu%7D/hello/hello-$%7B2.7%7D.tar.gz>" > inherit autotools gettext > > I downloaded hello-2.7.tar.gz -> extracted -> ran md5sum against > COPYING -> got md5 -> added that md5 to my hello.bb <http://hello.bb> > file. > Any ideas where I am doing wrong? > I think you need to add the md5 sum of source tarball as well, something like SRC_URI[md5sum] = "b93435488942486c8d0ca22e8f768034" Regards, Fahad. [-- Attachment #2: Type: text/html, Size: 1840 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 11:46 Hello world-Checksum error Zafrullah Syed 2013-05-28 11:57 ` Satya Swaroop Damarla 2013-05-28 12:05 ` Usman, Fahad @ 2013-05-28 12:14 ` Paul Eggleton 2013-05-28 12:32 ` Zafrullah Syed 2 siblings, 1 reply; 18+ messages in thread From: Paul Eggleton @ 2013-05-28 12:14 UTC (permalink / raw) To: Zafrullah Syed; +Cc: yocto On Tuesday 28 May 2013 13:46:26 Zafrullah Syed wrote: > I am trying to add Hello world recipe, everything was going good but after > giving bitbake <target> command it breaks with the following error: > > siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake gumstix-console-image > * > > ERROR: ExpansionError during parsing > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb: > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which > triggered exception NoMethodError: Could not find a fetcher which supports > the URL: '${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' > ERROR: Command execution failed: Exited with 1 > > > *My hello.bb file is*: > > DESCRIPTION = "GNU Helloworld application" > SECTION = "examples" > LICENSE = "GPLv3+" > LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > PR = "r0" > SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz" That should be: SRC_URI = "ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz" Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 12:14 ` Paul Eggleton @ 2013-05-28 12:32 ` Zafrullah Syed 2013-05-28 12:36 ` Erik Botö 0 siblings, 1 reply; 18+ messages in thread From: Zafrullah Syed @ 2013-05-28 12:32 UTC (permalink / raw) To: Paul Eggleton; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 1897 bytes --] Hi Paul, It's the same error: ERROR: ExpansionError during parsing /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb: Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which triggered exception NoMethodError: Could not find a fetcher which supports the URL: '{ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz' ERROR: Command execution failed: Exited with 1 I found something similar at the end of this: https://lists.yoctoproject.org/pipermail/yocto/2012-January/006660.html Any hints? Thank You, On Tue, May 28, 2013 at 2:14 PM, Paul Eggleton < paul.eggleton@linux.intel.com> wrote: > On Tuesday 28 May 2013 13:46:26 Zafrullah Syed wrote: > > I am trying to add Hello world recipe, everything was going good but > after > > giving bitbake <target> command it breaks with the following error: > > > > siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake > gumstix-console-image > > * > > > > ERROR: ExpansionError during parsing > > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/ > hello.bb: > > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which > > triggered exception NoMethodError: Could not find a fetcher which > supports > > the URL: '${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' > > ERROR: Command execution failed: Exited with 1 > > > > > > *My hello.bb file is*: > > > > DESCRIPTION = "GNU Helloworld application" > > SECTION = "examples" > > LICENSE = "GPLv3+" > > LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > > PR = "r0" > > SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz" > > That should be: > > SRC_URI = "ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz" > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 3522 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 12:32 ` Zafrullah Syed @ 2013-05-28 12:36 ` Erik Botö 2013-05-28 13:45 ` Zafrullah Syed 0 siblings, 1 reply; 18+ messages in thread From: Erik Botö @ 2013-05-28 12:36 UTC (permalink / raw) To: Zafrullah Syed; +Cc: Paul Eggleton, yocto On Tue, May 28, 2013 at 2:32 PM, Zafrullah Syed <zafrullahmehdi@gmail.com> wrote: > Hi Paul, > > It's the same error: > > ERROR: ExpansionError during parsing > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb: > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which > triggered exception NoMethodError: Could not find a fetcher which supports > the URL: '{ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz' > ERROR: Command execution failed: Exited with 1 > Looks like you still have {} in your SRC_URI, use: SRC_URI = "ftp://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz" Cheers, Erik > I found something similar at the end of this: > > https://lists.yoctoproject.org/pipermail/yocto/2012-January/006660.html > > Any hints? > > Thank You, > > > On Tue, May 28, 2013 at 2:14 PM, Paul Eggleton > <paul.eggleton@linux.intel.com> wrote: >> >> On Tuesday 28 May 2013 13:46:26 Zafrullah Syed wrote: >> > I am trying to add Hello world recipe, everything was going good but >> > after >> > giving bitbake <target> command it breaks with the following error: >> > >> > siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake >> > gumstix-console-image >> > * >> > >> > ERROR: ExpansionError during parsing >> > >> > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/hello.bb: >> > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} >> > which >> > triggered exception NoMethodError: Could not find a fetcher which >> > supports >> > the URL: '${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' >> > ERROR: Command execution failed: Exited with 1 >> > >> > >> > *My hello.bb file is*: >> > >> > DESCRIPTION = "GNU Helloworld application" >> > SECTION = "examples" >> > LICENSE = "GPLv3+" >> > LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" >> > PR = "r0" >> > SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz" >> >> That should be: >> >> SRC_URI = "ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz" >> >> Cheers, >> Paul >> >> -- >> >> Paul Eggleton >> Intel Open Source Technology Centre > > > > > -- > Regards, > Zafrullah Syed > > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 12:36 ` Erik Botö @ 2013-05-28 13:45 ` Zafrullah Syed 2013-05-28 13:54 ` Paul Eggleton 0 siblings, 1 reply; 18+ messages in thread From: Zafrullah Syed @ 2013-05-28 13:45 UTC (permalink / raw) To: Erik Botö; +Cc: Paul Eggleton, yocto [-- Attachment #1: Type: text/plain, Size: 2898 bytes --] Hi all, Error corrected. Thank You. Do we need to add IMAGE_INSTALL += " hello " and EXTRA_IMAGE_FEATURES += " hello " to yocto/build/conf/local.conf or yocto/poky/build/conf/local.conf before running build? On Tue, May 28, 2013 at 2:36 PM, Erik Botö <erik.boto@pelagicore.com> wrote: > On Tue, May 28, 2013 at 2:32 PM, Zafrullah Syed > <zafrullahmehdi@gmail.com> wrote: > > Hi Paul, > > > > It's the same error: > > > > ERROR: ExpansionError during parsing > > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/ > hello.bb: > > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} which > > triggered exception NoMethodError: Could not find a fetcher which > supports > > the URL: '{ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz' > > ERROR: Command execution failed: Exited with 1 > > > > Looks like you still have {} in your SRC_URI, use: > > SRC_URI = "ftp://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz" > > Cheers, > Erik > > > I found something similar at the end of this: > > > > https://lists.yoctoproject.org/pipermail/yocto/2012-January/006660.html > > > > Any hints? > > > > Thank You, > > > > > > On Tue, May 28, 2013 at 2:14 PM, Paul Eggleton > > <paul.eggleton@linux.intel.com> wrote: > >> > >> On Tuesday 28 May 2013 13:46:26 Zafrullah Syed wrote: > >> > I am trying to add Hello world recipe, everything was going good but > >> > after > >> > giving bitbake <target> command it breaks with the following error: > >> > > >> > siguser@siguser:~/yocto2013-05-08/poky/build$ *bitbake > >> > gumstix-console-image > >> > * > >> > > >> > ERROR: ExpansionError during parsing > >> > > >> > /home/siguser/yocto2013-05-08/poky/meta-bebot/recipes-bebot/hello/ > hello.bb: > >> > Failure expanding expression ${@bb.fetch.get_checksum_file_list(d)} > >> > which > >> > triggered exception NoMethodError: Could not find a fetcher which > >> > supports > >> > the URL: '${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz' > >> > ERROR: Command execution failed: Exited with 1 > >> > > >> > > >> > *My hello.bb file is*: > >> > > >> > DESCRIPTION = "GNU Helloworld application" > >> > SECTION = "examples" > >> > LICENSE = "GPLv3+" > >> > LIC_FILES_CHKSUM = > "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > >> > PR = "r0" > >> > SRC_URI = "${ftp://ftp.gnu.org/gnu}/hello/hello-${2.7}.tar.gz" > >> > >> That should be: > >> > >> SRC_URI = "ftp://ftp.gnu.org/gnu}/hello/hello-2.7.tar.gz" > >> > >> Cheers, > >> Paul > >> > >> -- > >> > >> Paul Eggleton > >> Intel Open Source Technology Centre > > > > > > > > > > -- > > Regards, > > Zafrullah Syed > > > > > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 5226 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 13:45 ` Zafrullah Syed @ 2013-05-28 13:54 ` Paul Eggleton 2013-06-04 10:42 ` Zafrullah Syed 0 siblings, 1 reply; 18+ messages in thread From: Paul Eggleton @ 2013-05-28 13:54 UTC (permalink / raw) To: Zafrullah Syed; +Cc: yocto On Tuesday 28 May 2013 15:45:10 Zafrullah Syed wrote: > Error corrected. Thank You. > > Do we need to add IMAGE_INSTALL += " hello " and EXTRA_IMAGE_FEATURES += " > hello " to yocto/build/conf/local.conf or yocto/poky/build/conf/local.conf > before running build? If you want it installed into an image, yes. However, IMAGE_INSTALL += "hello" in local.conf won't work, because it will be overridden by the setting of IMAGE_INSTALL in the image recipe itself, since local.conf will be parsed first. You need to do this instead in local.conf: IMAGE_INSTALL_append = " hello" (note the leading space, this is important with _append as _append does not add a space for you). _append operations are deferred until the end of parsing and thus will be applied even if the value is set with = afterwards as in this case. Also, EXTRA_IMAGE_FEATURES += " hello " won't do anything since "hello" is not a valid image feature, it's a package. Appending it to IMAGE_INSTALL is enough to have it installed into the image. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-05-28 13:54 ` Paul Eggleton @ 2013-06-04 10:42 ` Zafrullah Syed 2013-06-04 10:58 ` Paul Eggleton 0 siblings, 1 reply; 18+ messages in thread From: Zafrullah Syed @ 2013-06-04 10:42 UTC (permalink / raw) To: Paul Eggleton; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 2818 bytes --] Hi all, I am in a serious *problem* of unable to add a recipe and build an image. previously, I successfully build *gumstix-console-image* and I have created *meta-bebot* folder for my recipe. My Yocto tree as follows: Yocto --build --conf --bblayers.conf ( I added /home/siguser/yocto2013-05-08/poky/* meta-bebot* \ ) path --local.conf ( I added IMAGE_INSTALL_append = " hello" ) under *Additional image features* --downloads --tmp -- -- --poky --bitbake --build --documentation --meta --*meta-bebot* * --conf* * --bblayers.conf *(I added /home/siguser/yocto2013-05-08/poky/* meta-bebot* \ ) path * --layer.conf *(I added BBFILE_COLLECTIONS += "*meta-bebot*" BBFILE_PATTERN_*meta-bebot* := "^${LAYERDIR}/" BBFILE_PRIORITY_*meta-bebot* = "7" ) * --recipes-bebot* * --hello* * --hello.bb* --meta-gumstix --meta-gumstix-extras --meta-hob --meta-openembedded -- --remaining other folders.. When I try to build image *bitbake gumstix-console-image* again it throws this error: *ERROR: Nothing PROVIDES 'gumstix-console-image'* I do not know where I am doing wrong or what the problem is. I would be greatly helpful if anyone can give some inputs. Thank You, Regards, Zafrullah Syed On Tue, May 28, 2013 at 3:54 PM, Paul Eggleton < paul.eggleton@linux.intel.com> wrote: > On Tuesday 28 May 2013 15:45:10 Zafrullah Syed wrote: > > Error corrected. Thank You. > > > > Do we need to add IMAGE_INSTALL += " hello " and EXTRA_IMAGE_FEATURES += > " > > hello " to yocto/build/conf/local.conf or > yocto/poky/build/conf/local.conf > > before running build? > > If you want it installed into an image, yes. However, IMAGE_INSTALL += > "hello" > in local.conf won't work, because it will be overridden by the setting of > IMAGE_INSTALL in the image recipe itself, since local.conf will be parsed > first. You need to do this instead in local.conf: > > IMAGE_INSTALL_append = " hello" > > (note the leading space, this is important with _append as _append does not > add a space for you). _append operations are deferred until the end of > parsing > and thus will be applied even if the value is set with = afterwards as in > this > case. > > Also, EXTRA_IMAGE_FEATURES += " hello " won't do anything since "hello" is > not > a valid image feature, it's a package. Appending it to IMAGE_INSTALL is > enough > to have it installed into the image. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 4595 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 10:42 ` Zafrullah Syed @ 2013-06-04 10:58 ` Paul Eggleton 2013-06-04 13:19 ` Zafrullah Syed 0 siblings, 1 reply; 18+ messages in thread From: Paul Eggleton @ 2013-06-04 10:58 UTC (permalink / raw) To: Zafrullah Syed; +Cc: yocto On Tuesday 04 June 2013 12:42:12 Zafrullah Syed wrote: > previously, I successfully build *gumstix-console-image* and I have created > *meta-bebot* folder for my recipe. > > My Yocto tree as follows: > > Yocto > --build > --conf > --bblayers.conf ( I added /home/siguser/yocto2013-05-08/poky/* > meta-bebot* \ ) path > --local.conf ( I added IMAGE_INSTALL_append = " hello" ) under > *Additional > image features* > --downloads > --tmp > -- > -- > > --poky > --bitbake > --build > --documentation > --meta > --*meta-bebot* > * --conf* > * --bblayers.conf *(I added /home/siguser/yocto2013-05-08/poky/* > meta-bebot* \ ) path If I understand correctly from the above that you have put bblayers.conf in conf/ under your meta-bebot layer, that is not correct. bblayers.conf needs to be under conf/ in your build directory as usual. > * --layer.conf *(I added BBFILE_COLLECTIONS += "*meta-bebot*" > BBFILE_PATTERN_*meta-bebot* := > "^${LAYERDIR}/" > BBFILE_PRIORITY_*meta-bebot* = > "7" ) Are you also extending BBFILES and BBPATH in your meta-bebot/conf/layer.conf? > * --recipes-bebot* > * --hello* > * --hello.bb* > --meta-gumstix > --meta-gumstix-extras > --meta-hob > --meta-openembedded > -- > --remaining other folders.. > > > When I try to build image *bitbake gumstix-console-image* > again it throws this error: *ERROR: Nothing PROVIDES > 'gumstix-console-image'* BitBake uses BBFILES to find recipes; each layer's layer.conf typically extends BBFILES to find the recipes within the layer. If you are receiving this error it means (as you might expect) that BitBake cannot find a provider for the specified target. This is either because your bblayers.conf no longer adds the path to meta-gumstix to BBLAYERS, or because BBFILES is being reset so that it no longer includes the path within meta-gumstix to find the gumstix-console- image recipe. Please check that you don't have a duplicate bblayers.conf (as mentioned above) and that your meta-bebot/conf/layer.conf is appropriately extending BBFILES (see other layers for examples). Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 10:58 ` Paul Eggleton @ 2013-06-04 13:19 ` Zafrullah Syed 2013-06-04 13:26 ` Paul Eggleton 0 siblings, 1 reply; 18+ messages in thread From: Zafrullah Syed @ 2013-06-04 13:19 UTC (permalink / raw) To: Paul Eggleton; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 3304 bytes --] On Tue, Jun 4, 2013 at 12:58 PM, Paul Eggleton < paul.eggleton@linux.intel.com> wrote: > On Tuesday 04 June 2013 12:42:12 Zafrullah Syed wrote: > > previously, I successfully build *gumstix-console-image* and I have > created > > *meta-bebot* folder for my recipe. > > > > My Yocto tree as follows: > > > > Yocto > > --build > > --conf > > --bblayers.conf ( I added /home/siguser/yocto2013-05-08/poky/* > > meta-bebot* \ ) path > > --local.conf ( I added IMAGE_INSTALL_append = " hello" ) under > > *Additional > > image features* > > --downloads > > --tmp > > -- > > -- > > > > --poky > > --bitbake > > --build > > --documentation > > --meta > > --*meta-bebot* > > * --conf* > > * --bblayers.conf *(I added > /home/siguser/yocto2013-05-08/poky/* > > meta-bebot* \ ) path > > If I understand correctly from the above that you have put bblayers.conf in > conf/ under your meta-bebot layer, that is not correct. bblayers.conf > needs to > be under conf/ in your build directory as usual. > > my bblayers.conf file lies in poky/meta-bebot/conf/bblayers.conf. do I need to remove this file and keep it in which build folder? I mean /yocto/* build*/conf/bblayers.conf or /yocto/*poky*/build/conf/bblayers.conf? > > * --layer.conf *(I added BBFILE_COLLECTIONS += "*meta-bebot*" > > BBFILE_PATTERN_*meta-bebot* > := > > "^${LAYERDIR}/" > > > BBFILE_PRIORITY_*meta-bebot* = > > "7" ) > > Are you also extending BBFILES and BBPATH in your > meta-bebot/conf/layer.conf? > > My meta-bebot/conf/layer.conf is as follows: # We have a conf directory, append to BBPATH BBPATH .= ":${LAYERDIR}" # We have a recipes directory, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "meta-bebot" BBFILE_PATTERN_meta-bebot := "^${LAYERDIR}/" BBFILE_PRIORITY_meta-bebot = "7" > * --recipes-bebot* > > * --hello* > > * --hello.bb* > > --meta-gumstix > > --meta-gumstix-extras > > --meta-hob > > --meta-openembedded > > -- > > --remaining other folders.. > > > > > > When I try to build image *bitbake gumstix-console-image* > > again it throws this error: *ERROR: Nothing > PROVIDES > > 'gumstix-console-image'* > > BitBake uses BBFILES to find recipes; each layer's layer.conf typically > extends > BBFILES to find the recipes within the layer. If you are receiving this > error > it means (as you might expect) that BitBake cannot find a provider for the > specified target. This is either because your bblayers.conf no longer adds > the > path to meta-gumstix to BBLAYERS, or because BBFILES is being reset so > that it > no longer includes the path within meta-gumstix to find the > gumstix-console- > image recipe. Please check that you don't have a duplicate bblayers.conf > (as > mentioned above) and that your meta-bebot/conf/layer.conf is appropriately > extending BBFILES (see other layers for examples). > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 5149 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 13:19 ` Zafrullah Syed @ 2013-06-04 13:26 ` Paul Eggleton 2013-06-04 13:42 ` Zafrullah Syed 0 siblings, 1 reply; 18+ messages in thread From: Paul Eggleton @ 2013-06-04 13:26 UTC (permalink / raw) To: Zafrullah Syed, yocto On Tuesday 04 June 2013 15:19:49 Zafrullah Syed wrote: > On Tue, Jun 4, 2013 at 12:58 PM, Paul Eggleton < > paul.eggleton@linux.intel.com> wrote: > > On Tuesday 04 June 2013 12:42:12 Zafrullah Syed wrote: > > > previously, I successfully build *gumstix-console-image* and I have > > > > created > > > > > *meta-bebot* folder for my recipe. > > > > > > My Yocto tree as follows: > > > > > > Yocto > > > > > > --build > > > > > > --conf > > > > > > --bblayers.conf ( I added /home/siguser/yocto2013-05-08/poky/* > > > > > > meta-bebot* \ ) path > > > > > > --local.conf ( I added IMAGE_INSTALL_append = " hello" ) under > > > > > > *Additional > > > image features* > > > > > > --downloads > > > --tmp > > > -- > > > -- > > > > > > --poky > > > > > > --bitbake > > > --build > > > --documentation > > > --meta > > > --*meta-bebot* > > > > > > * --conf* > > > * --bblayers.conf *(I added > > > > /home/siguser/yocto2013-05-08/poky/* > > > > > meta-bebot* \ ) path > > > > If I understand correctly from the above that you have put bblayers.conf > > in > > conf/ under your meta-bebot layer, that is not correct. bblayers.conf > > needs to > > be under conf/ in your build directory as usual. > > my bblayers.conf file lies in poky/meta-bebot/conf/bblayers.conf. do I > need to remove this file and keep it in which build folder? I mean /yocto/* > build*/conf/bblayers.conf or /yocto/*poky*/build/conf/bblayers.conf? Yes, conf/bblayers.conf is supposed to be in the build directory; and whichever build directory you are actually using. The build directory can be anywhere, but you shouldn't really have two build directories unless you know what you are doing - did you perhaps run oe-init-build-env with no arguments in two different places? I suspect this is what has happened. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 13:26 ` Paul Eggleton @ 2013-06-04 13:42 ` Zafrullah Syed 2013-06-04 13:57 ` Paul Eggleton 2013-06-04 16:19 ` michael 0 siblings, 2 replies; 18+ messages in thread From: Zafrullah Syed @ 2013-06-04 13:42 UTC (permalink / raw) To: Paul Eggleton; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 2956 bytes --] I think yes. I usually give just *source oe-init-build-env *command, this is how i used earlier and failed. May be that is the reason it has created another build directory in /poky. What should be the command before building? i guess this( TEMPLATECONF=meta-gumstix-extras/conf source ./poky/oe-init-build-env ). so, every time i just need to give TEMPLATECONF command before building? Lastly, my meta-bebot directory should be as following ? /poky --meta-bebot --conf --layer.conf --recipes-bebot --hello --hello.bb and meta-bebot path should be set in bblayers.conf file? Please correct me if i am going wrong. Thank You. On Tue, Jun 4, 2013 at 3:26 PM, Paul Eggleton <paul.eggleton@linux.intel.com > wrote: > On Tuesday 04 June 2013 15:19:49 Zafrullah Syed wrote: > > On Tue, Jun 4, 2013 at 12:58 PM, Paul Eggleton < > > paul.eggleton@linux.intel.com> wrote: > > > On Tuesday 04 June 2013 12:42:12 Zafrullah Syed wrote: > > > > previously, I successfully build *gumstix-console-image* and I have > > > > > > created > > > > > > > *meta-bebot* folder for my recipe. > > > > > > > > My Yocto tree as follows: > > > > > > > > Yocto > > > > > > > > --build > > > > > > > > --conf > > > > > > > > --bblayers.conf ( I added /home/siguser/yocto2013-05-08/poky/* > > > > > > > > meta-bebot* \ ) path > > > > > > > > --local.conf ( I added IMAGE_INSTALL_append = " hello" ) under > > > > > > > > *Additional > > > > image features* > > > > > > > > --downloads > > > > --tmp > > > > -- > > > > -- > > > > > > > > --poky > > > > > > > > --bitbake > > > > --build > > > > --documentation > > > > --meta > > > > --*meta-bebot* > > > > > > > > * --conf* > > > > * --bblayers.conf *(I added > > > > > > /home/siguser/yocto2013-05-08/poky/* > > > > > > > meta-bebot* \ ) path > > > > > > If I understand correctly from the above that you have put > bblayers.conf > > > in > > > conf/ under your meta-bebot layer, that is not correct. bblayers.conf > > > needs to > > > be under conf/ in your build directory as usual. > > > > my bblayers.conf file lies in poky/meta-bebot/conf/bblayers.conf. do I > > need to remove this file and keep it in which build folder? I mean > /yocto/* > > build*/conf/bblayers.conf or /yocto/*poky*/build/conf/bblayers.conf? > > Yes, conf/bblayers.conf is supposed to be in the build directory; and > whichever build directory you are actually using. The build directory can > be > anywhere, but you shouldn't really have two build directories unless you > know > what you are doing - did you perhaps run oe-init-build-env with no > arguments > in two different places? I suspect this is what has happened. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 4907 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 13:42 ` Zafrullah Syed @ 2013-06-04 13:57 ` Paul Eggleton 2013-06-04 19:45 ` Zafrullah Syed 2013-06-04 16:19 ` michael 1 sibling, 1 reply; 18+ messages in thread From: Paul Eggleton @ 2013-06-04 13:57 UTC (permalink / raw) To: Zafrullah Syed; +Cc: yocto On Tuesday 04 June 2013 15:42:06 Zafrullah Syed wrote: > On Tue, Jun 4, 2013 at 3:26 PM, Paul Eggleton <paul.eggleton@linux.intel.com > wrote: > > Yes, conf/bblayers.conf is supposed to be in the build directory; and > > whichever build directory you are actually using. The build directory can > > be anywhere, but you shouldn't really have two build directories unless > > you know what you are doing - did you perhaps run oe-init-build-env with > > no arguments in two different places? I suspect this is what has happened. > > I think yes. I usually give just *source oe-init-build-env *command, this > is how i used earlier and failed. May be that is the reason it has created > another build directory in /poky. > What should be the command before building? i guess this( > TEMPLATECONF=meta-gumstix-extras/conf > source ./poky/oe-init-build-env ). so, every time i just need to give > TEMPLATECONF command before building? You need to run oe-init-build-env at the start of every session yes, but you shouldn't need to specify TEMPLATECONF except when you first create the build directory. The important thing is you need to be in the same directory when you run oe-init-build-env *or* specify the path to the build directory as a parameter. > Lastly, my meta-bebot directory should be as following ? > > /poky > --meta-bebot > --conf > --layer.conf > --recipes-bebot > --hello > --hello.bb If you have recipes-bebot under meta-bebot, yes. > and meta-bebot path should be set in bblayers.conf file? Yes. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 13:57 ` Paul Eggleton @ 2013-06-04 19:45 ` Zafrullah Syed 2013-06-04 20:01 ` Michael Stickel 0 siblings, 1 reply; 18+ messages in thread From: Zafrullah Syed @ 2013-06-04 19:45 UTC (permalink / raw) To: Paul Eggleton; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 2886 bytes --] Hi, I followed all the instructions and i started my build again. Build successfully started and struck with Hello md5sum error. ERROR: Fetcher failure for URL: ' ftp://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz'. No checksum specified for /home/siguser/yocto2013-05-21/build/downloads/hello-2.7.tar.gz, please add at least one to the recipe: SRC_URI[md5sum] = "fc01b05c7f943d3c42124942a2a9bb3a" SRC_URI[sha256sum] = "fd593b5bcf6d1bb6d7d1bb7eefdccdc0010cf2c4985ccb445ef490f768b927c0" I downloaded hello-2.7 from ftp://ftp.gnu.org/gnu/hello/ unzipped and ran md5sum against COPYING file. Each file has different md5sum, which md5sum should I include in my hello.bb file? *My hello.bb file*: DESCRIPTION = "GNU Helloworld application" SECTION = "examples" LICENSE = "GPLv3+" LIC_FILES_CHKSUM = "file://COPYING;md5=fc01b05c7f943d3c42124942a2a9bb3a" PR = "r0" SRC_URI = "ftp://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz" inherit autotools gettext Thank You, On Tue, Jun 4, 2013 at 3:57 PM, Paul Eggleton <paul.eggleton@linux.intel.com > wrote: > On Tuesday 04 June 2013 15:42:06 Zafrullah Syed wrote: > > On Tue, Jun 4, 2013 at 3:26 PM, Paul Eggleton < > paul.eggleton@linux.intel.com > > wrote: > > > Yes, conf/bblayers.conf is supposed to be in the build directory; and > > > whichever build directory you are actually using. The build directory > can > > > be anywhere, but you shouldn't really have two build directories unless > > > you know what you are doing - did you perhaps run oe-init-build-env > with > > > no arguments in two different places? I suspect this is what has > happened. > > > > I think yes. I usually give just *source oe-init-build-env *command, this > > is how i used earlier and failed. May be that is the reason it has > created > > another build directory in /poky. > > What should be the command before building? i guess this( > > TEMPLATECONF=meta-gumstix-extras/conf > > source ./poky/oe-init-build-env ). so, every time i just need to give > > TEMPLATECONF command before building? > > You need to run oe-init-build-env at the start of every session yes, but > you > shouldn't need to specify TEMPLATECONF except when you first create the > build > directory. The important thing is you need to be in the same directory when > you run oe-init-build-env *or* specify the path to the build directory as a > parameter. > > > Lastly, my meta-bebot directory should be as following ? > > > > /poky > > --meta-bebot > > --conf > > --layer.conf > > --recipes-bebot > > --hello > > --hello.bb > > If you have recipes-bebot under meta-bebot, yes. > > > and meta-bebot path should be set in bblayers.conf file? > > Yes. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > -- Regards, Zafrullah Syed [-- Attachment #2: Type: text/html, Size: 4532 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 19:45 ` Zafrullah Syed @ 2013-06-04 20:01 ` Michael Stickel 0 siblings, 0 replies; 18+ messages in thread From: Michael Stickel @ 2013-06-04 20:01 UTC (permalink / raw) To: yocto Hi This is the checksum over the archive. If this is your own recipe and has no checksum yet, just add the two lines to your recipe (for example right after the SRC_URI line): SRC_URI[md5sum] = "fc01b05c7f943d3c42124942a2a9bb3a" SRC_URI[sha256sum] = "fd593b5bcf6d1bb6d7d1bb7eefdccdc0010cf2c4985ccb445ef490f768b927c0" The checksum is used to check if the archive is broken or the wrong version. This is something different than the LIC_FILES_CHKSUM, that checks if license in the archive is what the recipe expects. Best regards Michael ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Hello world-Checksum error 2013-06-04 13:42 ` Zafrullah Syed 2013-06-04 13:57 ` Paul Eggleton @ 2013-06-04 16:19 ` michael 1 sibling, 0 replies; 18+ messages in thread From: michael @ 2013-06-04 16:19 UTC (permalink / raw) To: yocto > I think yes. I usually give just *source oe-init-build-env *command, this > is how i used earlier and failed. May be that is the reason it has created > another build directory in /poky. We have a script for that in our build directory that we source and that calls oe-init-build-env relatively. With that the chance to do a mistake is minimized. It uses a relative path to oe-init-build-env. We also use relative paths to all the layers we use in out bblayers.conf. As reference we use ${TOPDIR}, which is the build directory. METADIR_BUILDSYSTEMBASE="${TOPDIR}/../buildsystem_base" BBLAYERS ?= " \ ${METADIR_BUILDSYSTEMBASE}/poky-dylan-9.0.0/meta \ ${METADIR_BUILDSYSTEMBASE}/poky-dylan-9.0.0/meta-yocto \ ${METADIR_BUILDSYSTEMBASE}/poky-dylan-9.0.0/meta-yocto-bsp \ ${METADIR_BUILDSYSTEMBASE}/meta-openembedded/meta-oe \ ${METADIR_BUILDSYSTEMBASE}/meta-ti \ " The oeenv script is no rocket science and mostly looks like this: ----------[oeenv]------------- #!/bin/sh if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./oeenv" ]; then echo "Error: This script needs to be sourced. Please run as '. ./oeenv'" else # path to poky relative to build dir RELPATHTOOEENV="../buildsystem_base/poky-dylan-9.0.0/oe-init-build-env" if [ -n "$BASH_SOURCE" ]; then _BUILDROOT="`dirname $BASH_SOURCE`" else _BUILDROOT="`pwd`" fi _BUILDROOT=`readlink -f "$_BUILDROOT"` source "$_BUILDROOT"/"$RELPATHTOOEENV" "$_BUILDROOT" unset _BUILDROOT unset RELPATHTOOEENV fi --------[end]---------- ^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2013-06-04 20:02 UTC | newest] Thread overview: 18+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-05-28 11:46 Hello world-Checksum error Zafrullah Syed 2013-05-28 11:57 ` Satya Swaroop Damarla 2013-05-28 12:03 ` Zafrullah Syed 2013-05-28 12:05 ` Usman, Fahad 2013-05-28 12:14 ` Paul Eggleton 2013-05-28 12:32 ` Zafrullah Syed 2013-05-28 12:36 ` Erik Botö 2013-05-28 13:45 ` Zafrullah Syed 2013-05-28 13:54 ` Paul Eggleton 2013-06-04 10:42 ` Zafrullah Syed 2013-06-04 10:58 ` Paul Eggleton 2013-06-04 13:19 ` Zafrullah Syed 2013-06-04 13:26 ` Paul Eggleton 2013-06-04 13:42 ` Zafrullah Syed 2013-06-04 13:57 ` Paul Eggleton 2013-06-04 19:45 ` Zafrullah Syed 2013-06-04 20:01 ` Michael Stickel 2013-06-04 16:19 ` michael
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.