Skip to content

Commit

Permalink
Merge pull request #73 from abbotware/master
Browse files Browse the repository at this point in the history
Support for armhf binaries on arm64 (aarch64) operating system
  • Loading branch information
mvo5 committed Jan 25, 2018
2 parents 297b619 + bc161a7 commit 4e0e7de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions live-build/hooks/12-add-foreign-libc6.chroot
Expand Up @@ -19,3 +19,22 @@ if [ "$(dpkg --print-architecture)" = "amd64" ]; then
echo "I: Removing /var/cache/apt/*.bin"
rm -f /var/cache/apt/*.bin
fi

echo "I: Checking if we are arm64 and libc6:armhf should be installed"

if [ "$(dpkg --print-architecture)" = "arm64" ]; then
echo "I: Enabling armhf multiarch support on arm64"
dpkg --add-architecture armhf

apt-get -y update

echo "I: Installing libc6:armhf in arm64 image"
apt-get -y install libc6:armhf

echo "I: Removing /var/lib/apt/lists/*"
find /var/lib/apt/lists/ -type f -print0 | xargs -0 rm -f

echo "I: Removing /var/cache/apt/*.bin"
rm -f /var/cache/apt/*.bin
fi

0 comments on commit 4e0e7de

Please sign in to comment.