File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,19 +12,16 @@ repository = "https://github.com/neotron-compute/Neotron-OS"
1212name = " flash1002"
1313test = false
1414bench = false
15- required-features = [" defmt-log" ]
1615
1716[[bin ]]
1817name = " flash0802"
1918test = false
2019bench = false
21- required-features = [" defmt-log" ]
2220
2321[[bin ]]
2422name = " flash0002"
2523test = false
2624bench = false
27- required-features = [" defmt-log" ]
2825
2926[lib ]
3027crate-type = [" rlib" , " cdylib" ]
@@ -48,8 +45,4 @@ postcard = "0.5"
4845serde = { version = " 1.0" , default-features = false }
4946menu = " 0.3"
5047chrono = { 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 }
Original file line number Diff line number Diff 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
4444You 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```
Original file line number Diff line number Diff 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
2020done
2121
2222# Build the host version
2323echo " 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
2525cp ./target/x86_64-unknown-linux-gnu/release/libneotron_os.so ${RELEASE_DIR} /x86_64-unknown-linux-gnu-libneotron_os.so
You can’t perform that action at this time.
0 commit comments