-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build specific box64 for devices + qemu-static from source
- Loading branch information
1 parent
5605f0e
commit dba039f
Showing
4 changed files
with
194 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z "$ARM64_DEVICE" ]]; then | ||
echo "ARM64_DEVICE environment variable is not set, using generic Box64 build." | ||
fi | ||
|
||
# Define the path to binaries based on the ARM64_DEVICE environment variable | ||
case $ARM64_DEVICE in | ||
rpi5) | ||
BINARY_PATH="/usr/local/bin/box64-rpi5" | ||
;; | ||
m1) | ||
BINARY_PATH="/usr/local/bin/box64-m1" | ||
;; | ||
adlink) | ||
BINARY_PATH="/usr/local/bin/box64-adlink" | ||
;; | ||
*) | ||
BINARY_PATH="/usr/local/bin/box64-generic" | ||
;; | ||
esac | ||
|
||
# Check if the box64 exists | ||
if [[ ! -f $BINARY_PATH ]]; then | ||
echo "Error: Box64 file '$BINARY_PATH' not found for architecture '$ARM64_DEVICE'." | ||
exit 1 | ||
fi | ||
|
||
# Pass all arguments to box64 | ||
"$BINARY_PATH" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.