Skip to content

Commit c8f9938

Browse files
committed
Try to fix linux cross-build; add arm64 packages
1 parent f8e69f1 commit c8f9938

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/linux.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,15 @@ jobs:
5656
- name: Build Linux kernel deb for Qualcomm hardware
5757
run: |
5858
set -ux
59+
# download arm64 package lists to install cross build-dependencies
60+
if "$(dpkg --print-architecture != arm64)"; then
61+
dpkg --add-architecture arm64
62+
apt update
63+
fi
5964
# install build-dependencies; TODO: --no-install-recommends
6065
apt -y install git crossbuild-essential-arm64 make flex bison bc \
61-
libelf-dev libssl-dev dpkg-dev debhelper-compat kmod python3 \
62-
rsync coreutils
66+
libelf-dev libssl-dev:arm64 dpkg-dev debhelper-compat kmod
67+
python3 rsync coreutils
6368
scripts/build-linux-deb.sh
6469
6570
- name: Upload results to fileserver

scripts/build-linux-deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ packages="git"
2727
# a cross-compiler on other architectures
2828
packages="${packages} crossbuild-essential-arm64"
2929
# linux build-dependencies
30-
packages="${packages} make flex bison bc libelf-dev libssl-dev"
30+
packages="${packages} make flex bison bc libelf-dev libssl-dev:arm64"
3131
# linux build-dependencies for debs
3232
packages="${packages} dpkg-dev debhelper-compat kmod python3 rsync"
3333
# for nproc

0 commit comments

Comments
 (0)