Skip to content

Commit

Permalink
Autobuild: Add explanations for apt cross-compilation setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffie committed Oct 4, 2022
1 parent 1ebb261 commit d0f535c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/autobuild/linux_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ setup_cross_compilation_apt_sources() {
return
fi
sudo dpkg --add-architecture "${TARGET_ARCH}"
# Duplicate the original Ubuntu sources and modify them to refer to the TARGET_ARCH:
sed -rne "s|^deb.*/ ([^ -]+(-updates)?) main.*|deb [arch=${TARGET_ARCH}] http://ports.ubuntu.com/ubuntu-ports \1 main universe multiverse restricted|p" /etc/apt/sources.list | sudo dd of=/etc/apt/sources.list.d/"${TARGET_ARCH}".list
# Now take the original Ubuntu sources and limit those to the build host (i.e. non-TARGET_ARCH) architectures:
sudo sed -re 's/^deb /deb [arch=amd64,i386] /' -i /etc/apt/sources.list
}

Expand Down

0 comments on commit d0f535c

Please sign in to comment.