Skip to contentSkip to conversation

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

PATCH Li Zhijian 2 participants 3 messages May 27, 2013

lore
Share & tools
lore

Li Zhijian

author
#0 lore raw

Hi,

I modified as follows ,but it don't work.

meta-oe/recipes-support/ntp/ntp.inc +0 -0
@@ -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?

Signature · 2 lines
Best regards.
Li Zhijian 
#1 lore raw
Quoted 19 lines · Li Zhijian

I modified as follows ,but it don't work.

meta-oe/recipes-support/ntp/ntp.inc +0 -0
@@ -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 \
"

meta-oe/recipes-support/ntp/ntp.inc +2 -0
+SRC_URI[md5sum] = "00df80a84ec9528fcfb09498075525bc"
+SRC_URI[sha256sum] =

"d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c" +SRC_URI += "
http://jaist.dl.sourceforge.net/project/ictom/ntpstat-0.2.tar.gz "

meta-oe/recipes-support/ntp/ntp.inc +2 -0
+SRC_URI[md5sum] += "516847d99a772305cab711339998f9ea"
+SRC_URI[sha256sum] +=

"486fdfceb38590a9ff52ab8de1cc1ec4fc696f2e94da992e9ccf30157c32f01e"

Quoted 2 lines

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

author
#2 lore raw

resolved.
thanks

at 2013-5-27 14:52, Nicolas Dechesne wrote:

On Mon, May 27, 2013 at 7:40 AM, Li Zhijian <[email protected]> wrote:
I modified as follows ,but it don't work.

meta-oe/recipes-support/ntp/ntp.inc +5 -0
@@ -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

-- Best regards. Li Zhijian