[yocto] Passing more than one md5sum in yocto

Marko Lindqvist cazfi74 at gmail.com
Wed Dec 25 03:47:46 PST 2013


On 25 December 2013 13:37, Rohit2 Jindal <rohit2.jindal at aricent.com> wrote:
> Hi,
>
> Can u suggest me a way that we can pass more than one md5sum in yocto for
> two different sources to be downloaded.
>
>
>
> SRC_URI = "\
>
>      http://ftp.gnu.org/gnu/glibc/glibc-ports-2.13.tar.gz\
>
>         http://ftp.gnu.org/gnu/glibc/glibc-2.13.tar.gz\
>
> "
>
> SRC_URI[md5sum] = "094e3c9b57da605917a780ab24575187"
>
> SRC_URI[sha256sum] =
> "41cbdc05bd7b233464d649b59b34405e5bf3998522640b9f98f2c4eb91e87322"
>
> SRC_URI[md5sum] = "fafabe01cb9748acb0a11a6879ebaa7e"
>
> SRC_URI[sha256sum] =
> "bd90d6119bcc2898befd6e1bbb2cb1ed3bb1c2997d5eaa6fdbca4ee16191a906"
>
>
>
> I want to do like this but everytime it gives error due to glibc-ports it
> say mismatch of md5sum as it consider md5sum as fafb…
>
>
>
>
>
> I tried to make it separated but that also doesnot work
>
>
>
>
>
> SRC_URI = "\
>
>
> https://launchpad.net/glibc/head/2.13/+download/glibc-ports-2.13.tar.gz"
>
>
>
>
>
> SRC_URI[md5sum] = "094e3c9b57da605917a780ab24575187"
>
> SRC_URI[sha256sum] =
> "41cbdc05bd7b233464d649b59b34405e5bf3998522640b9f98f2c4eb91e87322"
>
>
>
> SRC_URI +=
> "https://launchpad.net/glibc/head/2.13/+download/glibc-2.13.tar.gz”
>
> SRC_URI[md5sum] += "fafabe01cb9748acb0a11a6879ebaa7e"
>
> SRC_URI[sha256sum] +=
> "bd90d6119bcc2898befd6e1bbb2cb1ed3bb1c2997d5eaa6fdbca4ee16191a906"
>
>
>
>
>
> Please help me out suggesting the proper way.
>
>
>
> Regards,
>
> Rohit Jindal
>

 See readline_6.2.bb for an example.

 You give each source package a name property like:
 SRC_URI = "https://launchpad.net/glibc/head/2.13/+download/glibc-2.13.tar.gz;name=glibc
\

https://launchpad.net/glibc/head/2.13/+download/glibc-ports-2.13.tar.gz;name=ports"


 and specify checksums to for these names

 SRC_URI[glibc.md5sum] = "..."
 SRC_URI[glibc.sha256sum = "..."
 SRC_URI[ports.md5sum] = "..."
 SRC_URI[ports.sha256.sum] = "...




 - ML



More information about the yocto mailing list