Skip to content

Commit

Permalink
initial pass at arm cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Jan 27, 2024
1 parent 122b6df commit 0cb9ead
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [ x86_64, aarch64 ]
arch: [ x86_64, aarch64, arm ]

steps:
- name: Checkout
Expand Down
14 changes: 14 additions & 0 deletions scripts/qemu_arm_interpreter
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# this interpreter shim is used by cmake to run platform
# detection programs

# we need to ensure that the binary uses the correct libc
# so first patch the program
patchelf --add-rpath /usr/arm-linux-gnueabihf/lib/ $1
patchelf --add-needed libm.so.6 $1
patchelf --add-needed libpthread.so.0 $1
patchelf --add-needed libdl.so.2 $1
patchelf --add-needed libutil.so.1 $1

# run the interpreter
qemu-arm-static "$@"

0 comments on commit 0cb9ead

Please sign in to comment.