From b92b00a1c8e304d5c76b44ab91c719eef28b4d06 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 30 Jan 2018 03:29:08 +0000 Subject: [PATCH] Update smoltcp. Fixes #902. --- artiq/firmware/Cargo.lock | 6 +++--- artiq/firmware/bootloader/Cargo.toml | 24 ++++++++++++++++++++++++ artiq/firmware/runtime/Cargo.toml | 2 +- 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 artiq/firmware/bootloader/Cargo.toml diff --git a/artiq/firmware/Cargo.lock b/artiq/firmware/Cargo.lock index 95ff12edc..ea78b8c7f 100644 --- a/artiq/firmware/Cargo.lock +++ b/artiq/firmware/Cargo.lock @@ -159,7 +159,7 @@ dependencies = [ "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "logger_artiq 0.0.0", "proto 0.0.0", - "smoltcp 0.4.0 (git+https://github.com/m-labs/smoltcp?rev=888b1d2)", + "smoltcp 0.4.0 (git+https://github.com/m-labs/smoltcp?rev=181083f)", "std_artiq 0.0.0", ] @@ -194,7 +194,7 @@ dependencies = [ [[package]] name = "smoltcp" version = "0.4.0" -source = "git+https://github.com/m-labs/smoltcp?rev=888b1d2#888b1d2403de79083ad9840ea8c6d93039555db3" +source = "git+https://github.com/m-labs/smoltcp?rev=181083f#181083f18c977b8a0463a67e360e4db20594fa21" dependencies = [ "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -238,7 +238,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum managed 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "786bd3519bdfb0e1a57146a74b7584555dd6c4f1b6e1137c70e177d60dde8186" "checksum rustc-cfg 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "56a596b5718bf5e059d59a30af12f7f462a152de147aa462b70892849ee18704" "checksum same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7" -"checksum smoltcp 0.4.0 (git+https://github.com/m-labs/smoltcp?rev=888b1d2)" = "" +"checksum smoltcp 0.4.0 (git+https://github.com/m-labs/smoltcp?rev=181083f)" = "" "checksum walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff" "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" diff --git a/artiq/firmware/bootloader/Cargo.toml b/artiq/firmware/bootloader/Cargo.toml new file mode 100644 index 000000000..506a56a9b --- /dev/null +++ b/artiq/firmware/bootloader/Cargo.toml @@ -0,0 +1,24 @@ +[package] +authors = ["M-Labs"] +name = "bootloader" +version = "0.0.0" +build = "build.rs" + +[lib] +name = "bootloader" +crate-type = ["staticlib"] +path = "main.rs" + +[build-dependencies] +build_misoc = { path = "../libbuild_misoc" } + +[dependencies] +byteorder = { version = "1.0", default-features = false } +crc = { version = "1.7", default-features = false } +board = { path = "../libboard", features = ["uart_console", "smoltcp"] } + +[dependencies.smoltcp] +git = "https://github.com/m-labs/smoltcp" +rev = "181083f" +default-features = false +features = ["proto-ipv4", "socket-tcp"] diff --git a/artiq/firmware/runtime/Cargo.toml b/artiq/firmware/runtime/Cargo.toml index 1bf53ab7e..05d692fd9 100644 --- a/artiq/firmware/runtime/Cargo.toml +++ b/artiq/firmware/runtime/Cargo.toml @@ -38,6 +38,6 @@ features = ["alloc"] [dependencies.smoltcp] git = "https://github.com/m-labs/smoltcp" -rev = "888b1d2" +rev = "181083f" default-features = false features = ["alloc", "log", "proto-ipv4", "socket-tcp"]