summaryrefslogtreecommitdiff
path: root/build-essential.morph
diff options
context:
space:
mode:
Diffstat (limited to 'build-essential.morph')
-rw-r--r--build-essential.morph101
1 files changed, 44 insertions, 57 deletions
diff --git a/build-essential.morph b/build-essential.morph
index c13572f..59709e0 100644
--- a/build-essential.morph
+++ b/build-essential.morph
@@ -1,42 +1,28 @@
chunks:
-
-# Stage 1: build a minimal cross compiler with the host's tools.
-#
-# Starting with a cross compiler ensures that (a) nothing from the host
-# can leak into the build-essential artifacts, and (b) cross-compiling
-# build-essential is fully tested and supported, since we always use the
-# cross code paths.
-
- build-depends: []
build-mode: bootstrap
name: stage1-binutils
prefix: /tools
- ref: baserock/build-essential
+ ref: c95c6c25ca35e70d2c21daf138daff8371a8c8d9
repo: upstream:binutils-redhat
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
build-mode: bootstrap
name: stage1-gcc
prefix: /tools
- ref: baserock/build-essential
+ ref: b80f666b48e227a685e5e492dd664c4f22da4d03
repo: upstream:gcc-tarball
-
-# Stage 2: cross-build the whole of build-essential, using the host's tools
-# but the cross-compiler toolchain.
-#
-# Stage 2 GCC outputs code for the same 'bootstrap' machine as stage 1 GCC,
-# but because stage 2 GCC is also built to *run* on the bootstrap machine
-# it can only execute inside the stage 3 chroot (due to being built against
-# a libc with a non-standard prefix).
-
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
build-mode: bootstrap
name: stage2-linux-api-headers
prefix: /tools
- ref: baserock/build-essential
+ ref: 710442694755b4f0c0e9d80f1383575f91a6ad24
repo: upstream:linux
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -44,8 +30,9 @@ chunks:
build-mode: bootstrap
name: stage2-eglibc
prefix: /tools
- ref: baserock/2.15-build-essential
+ ref: f06c6df4db836f9a6acd0bf6da05649b089cd44f
repo: upstream:eglibc2
+ unpetrify-ref: baserock/2.15-build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -53,8 +40,9 @@ chunks:
build-mode: bootstrap
name: stage2-binutils
prefix: /tools
- ref: baserock/build-essential
+ ref: c95c6c25ca35e70d2c21daf138daff8371a8c8d9
repo: upstream:binutils-redhat
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -62,8 +50,9 @@ chunks:
build-mode: bootstrap
name: stage2-gcc-fixed-headers
prefix: /tools
- ref: baserock/build-essential
+ ref: b80f666b48e227a685e5e492dd664c4f22da4d03
repo: upstream:gcc-tarball
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -72,8 +61,9 @@ chunks:
build-mode: bootstrap
name: stage2-gcc
prefix: /tools
- ref: baserock/build-essential
+ ref: b80f666b48e227a685e5e492dd664c4f22da4d03
repo: upstream:gcc-tarball
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -81,14 +71,16 @@ chunks:
build-mode: bootstrap
name: stage2-busybox
prefix: /tools
- ref: baserock/build-essential
+ ref: 27f88ceffc134a190b2cd78978877da0369b21ba
repo: upstream:busybox
+ unpetrify-ref: baserock/build-essential
- build-depends: []
build-mode: bootstrap
name: stage2-fhs-dirs
prefix: /tools
- ref: master
+ ref: c989da4874a8ee2379484b725c792140dae06b13
repo: baserock:baserock/fhs-dirs
+ unpetrify-ref: master
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -96,8 +88,9 @@ chunks:
build-mode: bootstrap
name: stage2-gawk
prefix: /tools
- ref: baserock/build-essential
+ ref: 6a0eb04c3d2ac24d80d505b42a8f67799487d133
repo: upstream:gawk
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -105,8 +98,9 @@ chunks:
build-mode: bootstrap
name: stage2-make
prefix: /tools
- ref: baserock/build-essential
+ ref: 56968f58301e6e5157cf4c8b6deefbaff2955eba
repo: upstream:make
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage1-binutils
- stage1-gcc
@@ -115,23 +109,9 @@ chunks:
build-mode: bootstrap
name: stage2-reset-specs
prefix: /tools
- ref: baserock/2.15-build-essential
+ ref: f06c6df4db836f9a6acd0bf6da05649b089cd44f
repo: upstream:eglibc2
-
-# Stage 3: build the whole of build-essential again, this time using a
-# staging area containing only the output of stage 2. The result of this
-# build is fully reproducible.
-#
-# We do a switch-a-roo between stage 2 and 3: stages 2 chunks are all built
-# to run on a host *-bootstrap-* while stage 3 chunks are native-built for
-# a *-baserock-* machine. This works, because the cross build was all for
-# show (and cleanliness) and the binaries actually still run on the host.
-#
-# After build-essential is built we do another trick. See
-# stage2-fhs-dirs.morph for details. Basically, /bin is a symlink to
-# /tools/bin during stage 2 but in stage 3 it becomes a real directory
-# again.
-
+ unpetrify-ref: baserock/2.15-build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -145,8 +125,9 @@ chunks:
build-mode: staging
name: fhs-dirs
prefix: /usr
- ref: master
+ ref: c989da4874a8ee2379484b725c792140dae06b13
repo: baserock:baserock/fhs-dirs
+ unpetrify-ref: master
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -160,8 +141,9 @@ chunks:
build-mode: staging
name: linux-api-headers
prefix: /usr
- ref: baserock/build-essential
+ ref: 710442694755b4f0c0e9d80f1383575f91a6ad24
repo: upstream:linux
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -176,8 +158,9 @@ chunks:
build-mode: staging
name: eglibc
prefix: /usr
- ref: baserock/2.15-build-essential
+ ref: f06c6df4db836f9a6acd0bf6da05649b089cd44f
repo: upstream:eglibc2
+ unpetrify-ref: baserock/2.15-build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -192,8 +175,9 @@ chunks:
build-mode: staging
name: zlib
prefix: /usr
- ref: baserock/build-essential
+ ref: db3aed6856d7a23186844fdf93105cad2fcf2f2f
repo: upstream:zlib
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -209,8 +193,9 @@ chunks:
build-mode: staging
name: binutils
prefix: /usr
- ref: baserock/build-essential
+ ref: c95c6c25ca35e70d2c21daf138daff8371a8c8d9
repo: upstream:binutils-redhat
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -225,8 +210,9 @@ chunks:
build-mode: staging
name: busybox
prefix: /usr
- ref: baserock/build-essential
+ ref: 27f88ceffc134a190b2cd78978877da0369b21ba
repo: upstream:busybox
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -241,8 +227,9 @@ chunks:
build-mode: staging
name: gawk
prefix: /usr
- ref: baserock/build-essential
+ ref: 6a0eb04c3d2ac24d80d505b42a8f67799487d133
repo: upstream:gawk
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -258,8 +245,9 @@ chunks:
build-mode: staging
name: gcc
prefix: /usr
- ref: baserock/build-essential
+ ref: b80f666b48e227a685e5e492dd664c4f22da4d03
repo: upstream:gcc-tarball
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -274,11 +262,9 @@ chunks:
build-mode: staging
name: make
prefix: /usr
- ref: baserock/build-essential
+ ref: 56968f58301e6e5157cf4c8b6deefbaff2955eba
repo: upstream:make
-
-# Extras that need to be in build-essential but don't need bootstrapping.
-
+ unpetrify-ref: baserock/build-essential
- build-depends:
- stage2-binutils
- stage2-busybox
@@ -294,8 +280,9 @@ chunks:
build-mode: staging
name: ccache
prefix: /usr
- ref: baserock/build-essential
+ ref: 0827e0b0f9c401b3aac87bb66fdeb81d6bdd6139
repo: upstream:ccache
+ unpetrify-ref: baserock/build-essential
description: Toolchain stratum
kind: stratum
name: build-essential