Skip to content

Commit

Permalink
test cross linux-arm with QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jan 16, 2025
1 parent e4ad4be commit 41e81b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-scripts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
- name: "apt-get install"
run: |
sudo apt-get update
sudo apt-get -y install qemu-system-x86 g++-mingw-w64-x86-64 gdb
sudo apt-get -y install qemu-system-x86 qemu-user g++-mingw-w64-x86-64 gdb
if: runner.os == 'Linux'
- name: Prepare and compile dependencies
run: python .ci/cue.py prepare
Expand Down
4 changes: 4 additions & 0 deletions configure/os/CONFIG_SITE.linux-x86.linux-arm
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ GNU_DIR = /usr/local/vw/zynq-2016.1/gnu/arm/lin
# See CONFIG_SITE.Common.linux-arm for other COMMANDLINE_LIBRARY values
#COMMANDLINE_LIBRARY = READLINE

# If you're building this architecture you _probably_ want to
# run the tests for it under QEMU, but if not you can turn
# them off here by commenting out this line:
CROSS_COMPILER_RUNTEST_ARCHS += $(T_A)
4 changes: 4 additions & 0 deletions src/tools/makeTestfile.pl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
# Explicitly fail for other RTEMS targets
die "$tool: I don't know how to create scripts for testing $TA on $HA\n";
}
elsif ($HA =~ /^linux-x86/ && $TA =~ /^linux-arm/) {
$exec = "qemu-arm-static -L /usr/arm-linux-gnueabihf $exe";
$error= "qemu-arm-static ... $exe";
}
else {
# Assume it's directly executable on other targets
$error = $exec = "./$exe";
Expand Down

0 comments on commit 41e81b1

Please sign in to comment.