[yocto] How to modify SRC_URI[md5sum] if there are mutil remote files

Nicolas Dechesne nicolas.dechesne at linaro.org
Sun May 26 23:52:23 PDT 2013


On Mon, May 27, 2013 at 7:40 AM, Li Zhijian <lizhijian at cn.fujitsu.com>wrote:

> I modified as follows ,but it don't work.
>
> --- a/meta-oe/recipes-support/ntp/ntp.inc
> +++ b/meta-oe/recipes-support/ntp/ntp.inc
> @@ -20,6 +20,9 @@ SRC_URI = "
> http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
> file://ntpdate.default \
> file://ntp.keys \
> "
> +SRC_URI[md5sum] = "00df80a84ec9528fcfb09498075525bc"
> +SRC_URI[sha256sum] =
> "d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c"
> +SRC_URI += "
> http://jaist.dl.sourceforge.net/project/ictom/ntpstat-0.2.tar.gz "
> +SRC_URI[md5sum] += "516847d99a772305cab711339998f9ea"
> +SRC_URI[sha256sum] +=
> "486fdfceb38590a9ff52ab8de1cc1ec4fc696f2e94da992e9ccf30157c32f01e"
>
>
> Any help or ideas?
>

you should have a look at:

http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-extended/bash/bash_4.2.bb

or

http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/apmd/apmd_3.2.2-14.bb

and for more examples, you can run
$ git grep "\.md5sum"

in the OE-core tree.

basically, the idea is to 'name' each of your sources, and refer them as
<name>.md5sum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130527/e7a1f0c6/attachment.html>


More information about the yocto mailing list