Skip to content

Commit 5c5644d

Browse files
committed
Makefile: Remove semihosting targets
Also remove the documentation that mentions those targets
1 parent 735b280 commit 5c5644d

File tree

4 files changed

+1
-100
lines changed

4 files changed

+1
-100
lines changed

.ci/ci

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ make -j8 firmware
6060
make -j8 firmware-btc
6161
make -j8 factory-setup
6262

63-
# Semihosting
64-
make -j8 bootloader-semihosting
65-
make -j8 firmware-semihosting
66-
6763
# Disallow some symbols in the final binary that we don't want.
6864
if arm-none-eabi-nm build/bin/firmware.elf | grep -q "float_to_decimal_common_shortest"; then
6965
echo "Rust fmt float formatting like {.1} adds significant binary bloat."

Makefile

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ build-build-rust-unit-tests/Makefile:
3838
cd build-build-rust-unit-tests && cmake .. -DCOVERAGE=OFF -DSANITIZE_ADDRESS=OFF -DSANITIZE_UNDEFINED=OFF
3939
$(MAKE) -C py/bitbox02
4040

41-
build-semihosting/Makefile:
42-
mkdir -p build-semihosting
43-
cd build-semihosting && cmake .. -DCMAKE_TOOLCHAIN_FILE=arm.cmake -DSEMIHOSTING=ON
44-
${MAKE} -C py/bitbox02
45-
4641
# Directory for building for "host" machine according to gcc convention
4742
build: build/Makefile
4843

@@ -54,20 +49,13 @@ build-build: build-build/Makefile
5449
# address santizers when they link code compiled with gcc.
5550
build-build-rust-unit-tests: build-build-rust-unit-tests/Makefile
5651

57-
# Directory for building for "host" machine but with semihosting enbled
58-
build-semihosting: build-semihosting/Makefile
59-
6052
firmware: | build
6153
# Generate python bindings for protobuf for test scripts
6254
$(MAKE) -C build firmware.elf
63-
firmware-semihosting: | build-semihosting
64-
$(MAKE) -C build-semihosting firmware.elf
6555
firmware-btc: | build
6656
$(MAKE) -C build firmware-btc.elf
6757
bootloader: | build
6858
$(MAKE) -C build bootloader.elf
69-
bootloader-semihosting: | build-semihosting
70-
$(MAKE) -C build-semihosting bootloader-development.elf
7159
bootloader-development: | build
7260
$(MAKE) -C build bootloader-development.elf
7361
bootloader-development-locked: | build
@@ -110,8 +98,6 @@ flash-dev-firmware:
11098
./py/load_firmware.py build/bin/firmware.bin --debug
11199
jlink-flash-bootloader-development: | build
112100
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build/scripts/bootloader-development.jlink
113-
jlink-flash-bootloader-semihosting: | build-semihosting
114-
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build-semihosting/scripts/bootloader-development.jlink
115101
jlink-flash-bootloader-development-locked: | build
116102
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build/scripts/bootloader-development-locked.jlink
117103
jlink-flash-bootloader: | build
@@ -126,8 +112,6 @@ jlink-flash-firmware-btc: | build
126112
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build/scripts/firmware-btc.jlink
127113
jlink-flash-factory-setup: | build
128114
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build/scripts/factory-setup.jlink
129-
jlink-flash-firmware-semihosting: | build-semihosting
130-
JLinkExe -if SWD -device ATSAMD51J20 -speed 4000 -autoconnect 1 -CommanderScript ./build-semihosting/scripts/firmware.jlink
131115
dockerinit:
132116
./scripts/container.sh build --pull --force-rm --no-cache -t shiftcrypto/firmware_v2:$(shell cat .containerversion) .
133117
dockerpull:
@@ -144,4 +128,4 @@ prepare-tidy: | build build-build
144128
make -C build rust-cbindgen
145129
make -C build-build rust-cbindgen
146130
clean:
147-
rm -rf build build-build build-semihosting build-build-rust-unit-tests
131+
rm -rf build build-build build-build-rust-unit-tests

scripts/jlink-gdb-debug/.gdbinit

Lines changed: 0 additions & 8 deletions
This file was deleted.

scripts/jlink-gdb-debug/README.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)