Bootstrapping Debian for a new architecture
Pietro Abate
Universite Paris Diderot / Irill
24-11-2012
- P. Abate (P7/Irill/Inria)
Bootstrapping Debian 24-11-2012 1 / 20
Bootstrapping Debian for a new architecture Pietro Abate Universite - - PowerPoint PPT Presentation
Bootstrapping Debian for a new architecture Pietro Abate Universite Paris Diderot / Irill 24-11-2012 P. Abate (P7/Irill/Inria) Bootstrapping Debian 24-11-2012 1 / 20 Introduction Acknowledgements Most of the work done by Johannes Schauer
Bootstrapping Debian 24-11-2012 1 / 20
Introduction
Bootstrapping Debian 24-11-2012 2 / 20
Introduction
Bootstrapping Debian 24-11-2012 3 / 20
Introduction
Bootstrapping Debian 24-11-2012 4 / 20
Introduction
1 Step zero : Bare metal. 2 Cross compilation : create a minimal build system (XC). 3 Automatic (cross) compile XC. 4 Switch to native compilation. 5 Find the largest number of sources that can be natively built (NC). 6 Automatic compile NC (we need a build order).
Bootstrapping Debian 24-11-2012 5 / 20
Introduction
◮ A build profile is a global build dependency filter ◮ It is the form : Build-Depends:
◮ The format similar to architecture specifiers
Bootstrapping Debian 24-11-2012 6 / 20
Introduction
Bootstrapping Debian 24-11-2012 7 / 20
Introduction
Bootstrapping Debian 24-11-2012 8 / 20
Bootstrap for a new architecture
Bootstrapping Debian 24-11-2012 9 / 20
Bootstrap for a new architecture
Bootstrapping Debian 24-11-2012 10 / 20
Bootstrap for a new architecture
Bootstrapping Debian 24-11-2012 11 / 20
Bootstrap for a new architecture
Bootstrapping Debian 24-11-2012 12 / 20
Bootstrap for a new architecture
Bootstrapping Debian 24-11-2012 13 / 20
Results
◮ source packages. ◮ build-dependency set (binaries needed to build a source package)
◮ build-dep (source → binary) ◮ built-from (binary → source)
Bootstrapping Debian 24-11-2012 14 / 20
Results
◮ Manually identify packages that are not strictly needed to compile a
◮ Use external information to identify weak packages (gentoo compile
◮ Add build profiles (ex. stage1, embedded, nodoc, etc) to source
Bootstrapping Debian 24-11-2012 15 / 20
Results
Bootstrapping Debian 24-11-2012 16 / 20
Results
Bootstrapping Debian 24-11-2012 17 / 20
Results
◮ unsatisfied cross build dependencies because of missing multi-arch
◮ insufficient number of reduced build dependencies to solve dependency
◮ wanna-build doesn’t support architecture qualifiers (pkg:any,
◮ no decision on format of reduced build dependencies
Bootstrapping Debian 24-11-2012 18 / 20
Conclusions
Bootstrapping Debian 24-11-2012 19 / 20
Conclusions
Bootstrapping Debian 24-11-2012 20 / 20