Skip to content

Commit

Permalink
Rust 1.77.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mullerch authored and github-actions[bot] committed Mar 29, 2024
1 parent 1f5f9fb commit eb7d8e3
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.77.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

# Recipe for cargo 20240321
# This corresponds to rust release 1.77.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": "3a4e60482a254b291c5a40eeef6774a2",
"arm-unknown-linux-gnueabi": "f5be914cd602f5122fee967a19351259",
"arm-unknown-linux-gnueabihf": "2ac677f86c7f7fbbaaca6dc0628d4897",
"armv7-unknown-linux-gnueabihf": "600d40f181a5f998b987544a63c33504",
"i686-unknown-linux-gnu": "0b8f72f5d3becd1ac4285ad3a70c89c4",
"x86_64-unknown-linux-gnu": "c564b1ff3fdb521478d0f80217b8efef",
}
return get_by_triple(HASHES, triple)

def cargo_sha256(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "897e384cac892c30b4fe7b47d7d349622a61f2ec91fd3e59632a9784a5ce4b98",
"arm-unknown-linux-gnueabi": "7f603046d7e18277060e3a986caa2af7ad33d4bb52a85db5b587772dfbe907c3",
"arm-unknown-linux-gnueabihf": "fed08c6d225489b693b758a7d91243562ddbcf75554ad19a22f3f1ed4c6bbad6",
"armv7-unknown-linux-gnueabihf": "0c0985ad955ca1a975be019b436cf2f6fb4a65f77cd15a7c63cdb737487a37de",
"i686-unknown-linux-gnu": "c1ce2a69defc46464c9df2d69543c6f5f13bd1b8f19a7d2e5477a335bdbc86c3",
"x86_64-unknown-linux-gnu": "c25097d2cbaca931c0ceca878d2b10938ca0f809df8ff8f2b69a3f3754d45622",
}
return get_by_triple(HASHES, triple)

def cargo_url(triple):
URLS = {
"aarch64-unknown-linux-gnu": "https://static.rust-lang.org/dist/2024-03-21/cargo-1.77.0-aarch64-unknown-linux-gnu.tar.gz",
"arm-unknown-linux-gnueabi": "https://static.rust-lang.org/dist/2024-03-21/cargo-1.77.0-arm-unknown-linux-gnueabi.tar.gz",
"arm-unknown-linux-gnueabihf": "https://static.rust-lang.org/dist/2024-03-21/cargo-1.77.0-arm-unknown-linux-gnueabihf.tar.gz",
"armv7-unknown-linux-gnueabihf": "https://static.rust-lang.org/dist/2024-03-21/cargo-1.77.0-armv7-unknown-linux-gnueabihf.tar.gz",
"i686-unknown-linux-gnu": "https://static.rust-lang.org/dist/2024-03-21/cargo-1.77.0-i686-unknown-linux-gnu.tar.gz",
"x86_64-unknown-linux-gnu": "https://static.rust-lang.org/dist/2024-03-21/cargo-1.77.0-x86_64-unknown-linux-gnu.tar.gz",
}
return get_by_triple(URLS, triple)

DEPENDS += "rust-bin-cross-${TARGET_ARCH} (= 1.77.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.77.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": "30283062716a8b6e895c8b71babc7d15",
"aarch64-unknown-linux-musl": "1ead533caef1ca1f0363065b200bcac4",
"arm-unknown-linux-gnueabi": "52b5b73ba51d2a1af9a28d13458918de",
"arm-unknown-linux-gnueabihf": "31b0f30b262164744e43e49ffea45541",
"armv5te-unknown-linux-gnueabi": "10224fb8b03abcdd4fedef7f8cdaf6d7",
"armv5te-unknown-linux-musleabi": "cd907a55ce450e468c4f9111f8cb68a6",
"armv7-unknown-linux-gnueabihf": "ff005d0c9514c1d2d436d03181ab8a92",
"armv7-unknown-linux-musleabihf": "7f3a29a226bbc7a59d5f368c8617697c",
"i686-unknown-linux-gnu": "75f3227b4251f88a07771e9612483eca",
"powerpc-unknown-linux-gnu": "3fec7c98471104e66e2f072b1fc5d41b",
"x86_64-unknown-linux-gnu": "5cde8a60cd76a2f6c1e3f92d96de3bea",
"riscv64gc-unknown-linux-gnu": "f9728eb8485dca610577b909e46728fa",
}
return get_by_triple(HASHES, triple)

def rust_std_sha256(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "2d440dbb24cf1a42c1ad030b195aad58040fd39c487013f32086a1cbc7e74c8b",
"aarch64-unknown-linux-musl": "7ef289b1115c78ca43ee9bf924c41536e8797f5c75a21e167c23d5af7405f2b3",
"arm-unknown-linux-gnueabi": "da7733e655ed7cf5e3b71565620998ccbb96ab7ab7eaa4186429f32c3e197b37",
"arm-unknown-linux-gnueabihf": "632b9c2951623071f5630ee9d96b209f1ea2dbba2dafe623bad37f0c46a326b6",
"armv5te-unknown-linux-gnueabi": "6538949141a3ff30db9cefeddd8e13e874adff3377adc3b8c79607033a9dfdd2",
"armv5te-unknown-linux-musleabi": "40d6373f0b596de2b335b523b137ea8c1d5b2d2a6b8044cb1f74a823e45da2ff",
"armv7-unknown-linux-gnueabihf": "f89d81efa9448204a8cd8c8a00dd9b6ad2fbd9fd5b8084150452f7d2457c5ddf",
"armv7-unknown-linux-musleabihf": "99b5590778c7fdce056aa86e3d4a71a719e153346f23a9c071bb5d60581a026a",
"i686-unknown-linux-gnu": "a61bb31c3f1a70c1232c62bc218145f50a1592fbd71f7e8ba942c38c4a45aded",
"powerpc-unknown-linux-gnu": "5677fce99a1aedd78897aadfd8e0e1c8691f8da7de7bfed747df243341294c46",
"x86_64-unknown-linux-gnu": "d134d44ff9feed5b6b5b686ab996d5dd188baa9b3a08a53e1587a492e2fc4704",
"riscv64gc-unknown-linux-gnu": "7b072ab55e8ae9506958b1fcc04d46846fe2024aa1dcc4266247325ecb9983f5",
}
return get_by_triple(HASHES, triple)

def rustc_md5(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "c526a2d6182de690df45914092b96701",
"arm-unknown-linux-gnueabi": "b75409b839d17ef946c3abcce240b837",
"arm-unknown-linux-gnueabihf": "22035eea0239e7b81a32e89ee061d750",
"armv7-unknown-linux-gnueabihf": "0d48eb8eaf3fff03de4a617977ad66a0",
"i686-unknown-linux-gnu": "4835c741c588a6b13afff5ac2a992041",
"x86_64-unknown-linux-gnu": "9f2888b903eadf4aa1a5286c3d49eb02",
}
return get_by_triple(HASHES, triple)

def rustc_sha256(triple):
HASHES = {
"aarch64-unknown-linux-gnu": "ba5906dcb294ad58ac56d098e6228b8c9cdcfc73e4771e60861a30ea08828604",
"arm-unknown-linux-gnueabi": "489027ad2a6ffaf3035fb8495862899608fba69addacc39f013e7a902c31b47c",
"arm-unknown-linux-gnueabihf": "7e26cfc626d537f73a804e59784834d0c1c4a5dbe01cc082240b65d00f998358",
"armv7-unknown-linux-gnueabihf": "a81814722b82052584ac0a1f741d35c2a12b704983eee33c8524cf9cfe0d2f0d",
"i686-unknown-linux-gnu": "c880d3c50014e5a57e98bffae3b4c9018c8b30556ac91add3e760a26b74d21fe",
"x86_64-unknown-linux-gnu": "a221d0fd2c3e20ba92ad5e7d376155328ad85bf01011eeef85fff1a7b6fef84b",
}
return get_by_triple(HASHES, triple)

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

require rust-bin-cross.inc

0 comments on commit eb7d8e3

Please sign in to comment.