Skip to content

Commit 808c9af

Browse files
committed
Better output from build script.
1 parent 2726b78 commit 808c9af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ mkdir -p ${RELEASE_DIR}
88

99
# Build the embedded binaries for each core type and each flash layout
1010
for 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
1720
done
1821

1922
# Build the host version
23+
echo "Building HOST"
2024
cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu
2125
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)