Skip to content

Commit 415ab26

Browse files
committed
Minor (toolchain) fixes
1 parent c0bd96f commit 415ab26

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.github/workflows/test.yml

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- name: Run tests AARCH64
4040
if: matrix.target == 'aarch64-unknown-none-softfloat'
4141
run: |
42-
cargo install cargo-binutils
4342
RUSTFLAGS="-C link-arg=-Ttests/aarch64_raspi3/link.ld" cargo test --target ${{ matrix.target }} --release
4443
4544
- name: Run tests RISCV64

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ clippy:
1616

1717
test:
1818
RUSTFLAGS="-C link-arg=-T$(LINKER_SCRIPT_AARCH64)" \
19-
cargo test \
20-
--target $(TARGET_AARCH64) \
21-
--release
19+
cargo test \
20+
--target $(TARGET_AARCH64) \
21+
--release
2222
RUSTFLAGS="-C link-arg=-T$(LINKER_SCRIPT_RISCV64)" \
23-
cargo test \
24-
--target $(TARGET_RISCV64) \
25-
--release
23+
cargo test \
24+
--target $(TARGET_RISCV64) \
25+
--release
2626

2727
fmt:
2828
cargo fmt

tests/exit_13.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
//! A simple test that exits QEMU with code 13.
66
7-
#![feature(asm)]
87
#![no_main]
98
#![no_std]
109

tests/test_runner_wrapper.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
TIMEOUT="timeout 10"
44

55
if [[ $1 == *"aarch64"* ]]; then
6-
rust-objcopy --strip-all -O binary $1 $1.img
7-
STRIPPED_BINARY=$(echo $1.img | sed -e 's/.*target/target/g')
8-
9-
$TIMEOUT qemu-system-aarch64 -M raspi3 -display none -semihosting -kernel $STRIPPED_BINARY
6+
$TIMEOUT qemu-system-aarch64 -M raspi3 -display none -semihosting -kernel $1
107
elif [[ $1 == *"riscv64"* ]]; then
118
$TIMEOUT qemu-system-riscv64 -M virt -bios tests/riscv64_virt/fw_jump.elf -display none -kernel $1
129
fi

0 commit comments

Comments
 (0)