Difference between revisions of "Create Debian sysroots"
(→Run debootstrap) |
(→Run debootstrap) |
||
Line 21: | Line 21: | ||
<nowiki>mkdir -p /tmp/sysroots | <nowiki>mkdir -p /tmp/sysroots | ||
+ | cd /tmp/sysroots | ||
for arch in amd64 arm64 mips mips64el ppc64el; do debootstrap --arch $arch --variant=buildd stable debian-$arch http://deb.debian.org/debian; done</nowiki> | for arch in amd64 arm64 mips mips64el ppc64el; do debootstrap --arch $arch --variant=buildd stable debian-$arch http://deb.debian.org/debian; done</nowiki> | ||
Revision as of 13:50, 24 November 2019
Introduction
We'll create Debian sysroots suitable for a GCC cross compiler.
Prerequisites
Debian or Ubuntu or any system that can run debootstrap.
Everything below runs as root:
sudo -i
Install debootstrap
apt install -y debootstrap
Run debootstrap
mkdir -p /tmp/sysroots cd /tmp/sysroots for arch in amd64 arm64 mips mips64el ppc64el; do debootstrap --arch $arch --variant=buildd stable debian-$arch http://deb.debian.org/debian; done