Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for armhf binaries on arm64 (aarch64) operating system #73

Merged
merged 3 commits into from Jan 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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