Create Debian sysroots

From Aram's Wiki
Revision as of 12:47, 24 November 2019 by Aram (talk | contribs) (Prerequisites)
Jump to: navigation, search


Introduction

We'll create Debian sysroots suitable for a GCC cross compiler.

Prerequisites

Debian or Ubuntu or any system that can run debootstrap.

Install debootstrap

sudo apt install -y debootstrap

Run debootstrap

for arch in amd64 arm64 mips mips64el ppc64el; do sudo debootstrap --arch $arch --variant=buildd stable debian-$arch http://deb.debian.org/debian; done

See also