Skip to content

Commit 3e1871e

Browse files
authored
Merge pull request #314823 from trofi/bootstrap-files-for-a-new-target
maintainers/scripts/bootstrap-files: document the procedure of adding…
2 parents d96726b + f26287d commit 3e1871e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

maintainers/scripts/bootstrap-files/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,30 @@ target:
4747
who can help you test the updated architecture and once reviewed tag
4848
`@lovesegfault` to upload the tarballs.
4949

50+
## How to add bootstrap files for a new target
51+
52+
The procedure to add a new target is very similar to the update
53+
procedure. The only difference is that you need to set up a new job to
54+
build the `bootstrapFiles`. To do that you will need the following:
55+
56+
1. Add your new target to `lib/systems/examples.nix`
57+
58+
This will populate `pkgsCross.$target` attribute set. If you are
59+
dealing with `bootstrapFiles` upload you probably already have it.
60+
61+
2. Add your new target to
62+
`pkgs/stdenv/linux/make-bootstrap-tools-cross.nix`. This will add a
63+
new hydra job to `nixpkgs:cross-trunk` jobset.
64+
65+
3. Wait for a hydra to build your bootstrap tarballs.
66+
67+
4. Add your new target to
68+
`maintainers/scripts/bootstrap-files/refresh-tarballs.bash` around
69+
`CROSS_TARGETS=()`.
70+
71+
5. Add your new target to `pkgs/stdenv/linux/default.nix` and follow
72+
standard bootstrap seed update procedure above.
73+
5074
## Bootstrap files job definitions
5175

5276
There are two types of bootstrap files:

0 commit comments

Comments
 (0)