Skip to content

Commit

Permalink
Rust 1.76.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mullerch authored and github-actions[bot] committed Feb 22, 2024
1 parent 1f5f9fb commit dd37d57
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 0 deletions.
51 changes: 51 additions & 0 deletions recipes-devtools/rust/cargo-bin-cross_1.76.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
67 changes: 67 additions & 0 deletions recipes-devtools/rust/rust-bin-cross_1.76.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

def get_by_triple(hashes, triple):
try:
return hashes[triple]
except:
raise bb.parse.SkipRecipe("Unsupported triple: %s" % triple)


def rust_std_md5(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "b3ddac44bd93afd8d8eeb43472838901",
"aarch64-unknown-linux-musl": "289c447e3704c69cbc5e99512e056124",
"arm-unknown-linux-gnueabi": "5ae081280fe288e518f96568c1c3a447",
"arm-unknown-linux-gnueabihf": "037f70b445672f6a5ea20e1b8676e486",
"armv5te-unknown-linux-gnueabi": "dd95c670c3122633477b2bcb92a99c0d",
"armv5te-unknown-linux-musleabi": "dab69a0894379cfd8af58805809c9244",
"armv7-unknown-linux-gnueabihf": "7855f963357eaa30dc02275bf9d8454c",
"armv7-unknown-linux-musleabihf": "fa2806be9b8e951e271361bcd26ee2e2",
"i686-unknown-linux-gnu": "936a9b7f0fca82a0c042a31caaf6509f",
"powerpc-unknown-linux-gnu": "bf39759062c8c92aa7bf61d67643a7e0",
"x86_64-unknown-linux-gnu": "b6650ab5179cbcb3423f5b900648d6c3",
"riscv64gc-unknown-linux-gnu": "b08e98d569e56a9807513337a3e009dc",
}
return get_by_triple(HASHES, triple)

def rust_std_sha256(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "f7d217f36f3dd167247f29c9bc0fc3939c69069666db915a908535d13397cd33",
"aarch64-unknown-linux-musl": "bfccc644677947f2ee4e061c1f84920e794ec3e29eda6eaaf5c6ff5db8b32929",
"arm-unknown-linux-gnueabi": "94be6d0740bdfe7b090d757c402f04bd2307a231146c800e33ee633369499d6c",
"arm-unknown-linux-gnueabihf": "4d169b281b0a7d223e6789e62943372f09c79bfab26975aedbde9b5e574bd3b3",
"armv5te-unknown-linux-gnueabi": "b26682c16d5513fbfc84c838f544f0880c82eb39fbda09bd193972ba98430e65",
"armv5te-unknown-linux-musleabi": "632ffbae76f42fc8171564dfc781e396f349c557fdc7a293ea3e9243d551eca9",
"armv7-unknown-linux-gnueabihf": "1c38aa0fc6e2091b40bbbe029f57173fbdf3d6ef0a511fbd36e4484cb58509a3",
"armv7-unknown-linux-musleabihf": "dee1b77633e863b659d7be0219fb6226f076d1010a9ed5cf4d4910395969a4ab",
"i686-unknown-linux-gnu": "a0ee55109224a57327ade93b4ea1c0e7e8d8c9acbe13e2986f321b932f64399d",
"powerpc-unknown-linux-gnu": "29edf8a0cc49ce5f13868cb8ac2772bde0c5e3e7e183dd9a334d4cb203cf301d",
"x86_64-unknown-linux-gnu": "403e78b46d0730a21d6b25fe80ec947dc0ac4807c1f0930db68a4866552d839d",
"riscv64gc-unknown-linux-gnu": "2b4c722ad1934de8908563fb7b295d050bf5e749705b9c3dc09f729d441ea64d",
}
return get_by_triple(HASHES, triple)

def rustc_md5(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "aaa8ee8586ba70d709d8690a8953208d",
"arm-unknown-linux-gnueabi": "cff3d753017ba019c2e515ea89c34857",
"arm-unknown-linux-gnueabihf": "28efe5cb984be77848e00fa5a1c3ab21",
"armv7-unknown-linux-gnueabihf": "b51d3188a974f200d9451cc023ba3a73",
"i686-unknown-linux-gnu": "b311c97120e2ff0b00da710ce13480ae",
"x86_64-unknown-linux-gnu": "ff2c6b5ca91bf553def0e113faeb3042",
}
return get_by_triple(HASHES, triple)

def rustc_sha256(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "20a9b0ac8551fbf1dabfe888887682598a337ab779feaa326d2e95aab9d1e5b8",
"arm-unknown-linux-gnueabi": "f990e18ef1b9329bbc2afce665a503fd3a29b9793ded6b0ccf3983a24a1db5b6",
"arm-unknown-linux-gnueabihf": "49be48cc05fe46f3d408efc66a1e8ca2c0a64a3436d8be01401ba49ad4be7b5b",
"armv7-unknown-linux-gnueabihf": "a3b1f2d6c64b937f6d697d840c4ef9e660f65222e0b8aef3ecd4fbf87c247042",
"i686-unknown-linux-gnu": "8e90b82641a4f60276ca39c31fce2c901fd1318ebe3e6095667d070b53386bb0",
"x86_64-unknown-linux-gnu": "529f12c8874f4d912059b5b1d012f0d67bfaa89b7669509a6a2df8512da3f124",
}
return get_by_triple(HASHES, triple)

LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=c2cccf560306876da3913d79062a54b9"

require rust-bin-cross.inc

0 comments on commit dd37d57

Please sign in to comment.