-
Notifications
You must be signed in to change notification settings - Fork 66
/
cargo-bin-cross_1.76.0.bb
51 lines (43 loc) · 2.52 KB
/
cargo-bin-cross_1.76.0.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Recipe for cargo 20240208
# This corresponds to rust release 1.76.0
def get_by_triple(hashes, triple):
try:
return hashes[triple]
except:
raise bb.parse.SkipRecipe("Unsupported triple: %s" % triple)
def cargo_md5(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "b11da68ed8a864b5b96bfac94a6b758a",
"arm-unknown-linux-gnueabi": "1b7eb9779f6b8cb7d41e4d17d030e11d",
"arm-unknown-linux-gnueabihf": "869492b8f9254cb369ab2409dd552082",
"armv7-unknown-linux-gnueabihf": "18dc7ff2f0dd7a222205aac7390fc76d",
"i686-unknown-linux-gnu": "8ad87a2b4a329e3a7564afd119d021b0",
"x86_64-unknown-linux-gnu": "e574fee2ee4d22a65ba657abb4d6b506",
}
return get_by_triple(HASHES, triple)
def cargo_sha256(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "0bc5824008fceb11afe19618d6484b0555353f656211956bd90eca8925e0023f",
"arm-unknown-linux-gnueabi": "05f8d47a622075f504f777e742c0cefd11536bda8276cfef1a839f780c1446d8",
"arm-unknown-linux-gnueabihf": "05a2d48cf50fd84570e5d48f4f4cc3685ee5b78855248cbf3835a368cc99311e",
"armv7-unknown-linux-gnueabihf": "a9bcae087e0aba6fc1052d77840eaa5f9570d0015c68b1b23781d61e0a8fb0ee",
"i686-unknown-linux-gnu": "357e40c43fb350d24958368c295171fd00ccc760e7227dc2c474fdc03f1aaa92",
"x86_64-unknown-linux-gnu": "7c8dd6f50fb85d0a9fa6e20dcf2ef5bf1f69b66bcfd220d1859716e1d0516163",
}
return get_by_triple(HASHES, triple)
def cargo_url(triple):
URLS = {
"aarch64-unknown-linux-gnu": "https://static.rust-lang.org/dist/2024-02-08/cargo-1.76.0-aarch64-unknown-linux-gnu.tar.gz",
"arm-unknown-linux-gnueabi": "https://static.rust-lang.org/dist/2024-02-08/cargo-1.76.0-arm-unknown-linux-gnueabi.tar.gz",
"arm-unknown-linux-gnueabihf": "https://static.rust-lang.org/dist/2024-02-08/cargo-1.76.0-arm-unknown-linux-gnueabihf.tar.gz",
"armv7-unknown-linux-gnueabihf": "https://static.rust-lang.org/dist/2024-02-08/cargo-1.76.0-armv7-unknown-linux-gnueabihf.tar.gz",
"i686-unknown-linux-gnu": "https://static.rust-lang.org/dist/2024-02-08/cargo-1.76.0-i686-unknown-linux-gnu.tar.gz",
"x86_64-unknown-linux-gnu": "https://static.rust-lang.org/dist/2024-02-08/cargo-1.76.0-x86_64-unknown-linux-gnu.tar.gz",
}
return get_by_triple(URLS, triple)
DEPENDS += "rust-bin-cross-${TARGET_ARCH} (= 1.76.0)"
LIC_FILES_CHKSUM = "\
file://LICENSE-APACHE;md5=71b224ca933f0676e26d5c2e2271331c \
file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d \
"
require cargo-bin-cross.inc