about summary refs log tree commit diff
path: root/maintainers
diff options
context:
space:
mode:
author0x4A6F2024-06-29 18:43:00 +0200
committerGitHub2024-06-29 18:43:00 +0200
commit3e1871e3643199ed29258cf0e3260d129315d592 (patch)
treebe0180b5db6677fe18c7d1d919e4790316386301 /maintainers
parentd96726ba208ea87b2f2908235f8e78ed8d8a5a58 (diff)
parentf26287d1a4f634eb50929002864d9ea386ab5220 (diff)
Merge pull request #314823 from trofi/bootstrap-files-for-a-new-target
maintainers/scripts/bootstrap-files: document the procedure of adding…
Diffstat (limited to 'maintainers')
-rw-r--r--maintainers/scripts/bootstrap-files/README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/maintainers/scripts/bootstrap-files/README.md b/maintainers/scripts/bootstrap-files/README.md
index 7a1a2bef867c..d40ab5212ab0 100644
--- a/maintainers/scripts/bootstrap-files/README.md
+++ b/maintainers/scripts/bootstrap-files/README.md
@@ -47,6 +47,30 @@ target:
    who can help you test the updated architecture and once reviewed tag
   `@lovesegfault` to upload the tarballs.
 
+## How to add bootstrap files for a new target
+
+The procedure to add a new target is very similar to the update
+procedure. The only difference is that you need to set up a new job to
+build the `bootstrapFiles`. To do that you will need the following:
+
+1. Add your new target to `lib/systems/examples.nix`
+
+   This will populate `pkgsCross.$target` attribute set. If you are
+   dealing with `bootstrapFiles` upload you probably already have it.
+
+2. Add your new target to
+   `pkgs/stdenv/linux/make-bootstrap-tools-cross.nix`. This will add a
+   new hydra job to `nixpkgs:cross-trunk` jobset.
+
+3. Wait for a hydra to build your bootstrap tarballs.
+
+4. Add your new target to
+   `maintainers/scripts/bootstrap-files/refresh-tarballs.bash` around
+   `CROSS_TARGETS=()`.
+
+5. Add your new target to `pkgs/stdenv/linux/default.nix` and follow
+   standard bootstrap seed update procedure above.
+
 ## Bootstrap files job definitions
 
 There are two types of bootstrap files: