Skip to content

Commit 0a5aa28

Browse files
Updated to latest experimental embedded-sdmmc.
1 parent 15e733b commit 0a5aa28

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,16 @@ repository = "https://github.com/neotron-compute/Neotron-OS"
1212
name = "flash1002"
1313
test = false
1414
bench = false
15-
required-features = ["defmt-log"]
1615

1716
[[bin]]
1817
name = "flash0802"
1918
test = false
2019
bench = false
21-
required-features = ["defmt-log"]
2220

2321
[[bin]]
2422
name = "flash0002"
2523
test = false
2624
bench = false
27-
required-features = ["defmt-log"]
2825

2926
[lib]
3027
crate-type = ["rlib", "cdylib"]
@@ -48,8 +45,4 @@ postcard = "0.5"
4845
serde = { version = "1.0", default-features = false }
4946
menu = "0.3"
5047
chrono = { version = "0.4", default-features = false }
51-
embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", default-features = false }
52-
53-
[features]
54-
native-log = ["embedded-sdmmc/log"]
55-
defmt-log = ["embedded-sdmmc/defmt-log"]
48+
embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", branch="more-api-cleanups", default-features = false }

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ three different binaries:
3434
```console
3535
$ git clone https://github.com/neotron-compute/Neotron-OS.git
3636
$ cd Neotron-OS
37-
$ cargo build --target thumbv6m-none-eabi --release --bins --features=defmt-log
37+
$ cargo build --target thumbv6m-none-eabi --release --bins
3838
$ ls ./target/thumbv6m-none-eabi/release/flash*02
3939
./target/thumbv6m-none-eabi/release/flash0002 ./target/thumbv6m-none-eabi/release/flash0802 ./target/thumbv6m-none-eabi/release/flash1002
4040
```
@@ -44,7 +44,7 @@ Your BIOS should tell you which one you want and how to load it onto your system
4444
You can also build a *shared object* to load into a Windows/Linux/macOS application.
4545

4646
```console
47-
$ cargo build --lib --features=native-log
47+
$ cargo build --lib
4848
$ ls ./target/debug/*.so
4949
./target/debug/libneotron_os.so
5050
```

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ for TARGET_ARCH in thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi; do
1111
echo "TARGET is ${TARGET_ARCH}"
1212
for BINARY in flash0002 flash0802 flash1002; do
1313
echo "BINARY is ${BINARY}"
14-
cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} --features=defmt-log
14+
cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY}
1515
# objcopy would do the build for us first, but it doesn't have good build output
16-
cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} --features=defmt-log -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin
16+
cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin
1717
# Keep the ELF file too (for debugging)
1818
cp ./target/${TARGET_ARCH}/release/${BINARY} ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.elf
1919
done
2020
done
2121

2222
# Build the host version
2323
echo "Building HOST"
24-
cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu --features=native-log
24+
cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu
2525
cp ./target/x86_64-unknown-linux-gnu/release/libneotron_os.so ${RELEASE_DIR}/x86_64-unknown-linux-gnu-libneotron_os.so

0 commit comments

Comments
 (0)