File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,18 @@ mkdir -p ${RELEASE_DIR}
88
99# Build the embedded binaries for each core type and each flash layout
1010for TARGET_ARCH in thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi; do
11+ echo " TARGET is ${TARGET_ARCH} "
1112 for BINARY in flash0002 flash0802 flash1002; do
12- # objcopy will do the build for us first
13+ echo " BINARY is ${BINARY} "
14+ cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY}
15+ # objcopy would do the build for us first, but it doesn't have good build output
1316 cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} -- -O binary ${RELEASE_DIR} /${TARGET_ARCH} -${BINARY} -libneotron_os.bin
1417 # Keep the ELF file too (for debugging)
1518 cp ./target/${TARGET_ARCH} /release/${BINARY} ${RELEASE_DIR} /${TARGET_ARCH} -${BINARY} -libneotron_os.elf
1619 done
1720done
1821
1922# Build the host version
23+ echo " Building HOST"
2024cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu
2125cp ./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