2021-02-03 05:09:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2021-02-03 05:15:13 +01:00
|
|
|
# build for std
|
2021-04-12 21:00:23 +02:00
|
|
|
(cd embassy-net; cargo build --no-default-features --features log,medium-ethernet,tcp)
|
|
|
|
(cd embassy-net; cargo build --no-default-features --features log,medium-ethernet,tcp,dhcpv4)
|
|
|
|
(cd embassy-net; cargo build --no-default-features --features log,medium-ip,tcp)
|
|
|
|
(cd embassy-net; cargo build --no-default-features --features log,medium-ethernet,medium-ip,tcp,dhcpv4)
|
2021-02-03 05:09:37 +01:00
|
|
|
|
2021-02-03 05:15:13 +01:00
|
|
|
# build for embedded
|
2021-04-12 21:00:23 +02:00
|
|
|
(cd embassy-net; cargo build --target thumbv7em-none-eabi --no-default-features --features log,medium-ethernet,medium-ip,tcp,dhcpv4)
|
|
|
|
(cd embassy-net; cargo build --target thumbv7em-none-eabi --no-default-features --features defmt,smoltcp/defmt,medium-ethernet,medium-ip,tcp,dhcpv4)
|
2021-02-03 05:09:37 +01:00
|
|
|
|
2021-02-03 05:15:13 +01:00
|
|
|
# build examples
|
|
|
|
(cd embassy-net-examples; cargo build)
|