summaryrefslogtreecommitdiff
path: root/pkgs/build-support/kernel
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2024-11-17 20:32:35 +0100
committerWolfgang Walther <walther@technowledgy.de>2024-12-29 18:36:47 +0100
commitcf127c9dc389231b03bae610fec546e2017969ea (patch)
treee799336cbced2b5aff3a6c4065b0dd8aad2bfaaf /pkgs/build-support/kernel
parentlibajantv2: 16.2-bugfix5 -> 17.1.0 (#367135) (diff)
downloadnixpkgs-cf127c9dc389231b03bae610fec546e2017969ea.tar.gz
treewide: load structured attributes in all bash builders consistently
It's hard to put the sourcing of ./.attrs.sh into all builder consistently - mistakes will happen. Thus, load structured attrs once in make-derivation and then source the remaining builder on top. This should fix quite a few builders with structured attributes in principle. Most importantly it helps substitute / substituteAll, which are required for bootstrap on some platforms.
Diffstat (limited to 'pkgs/build-support/kernel')
-rw-r--r--pkgs/build-support/kernel/make-initrd.sh2
-rw-r--r--pkgs/build-support/kernel/modules-closure.sh2
2 files changed, 0 insertions, 4 deletions
diff --git a/pkgs/build-support/kernel/make-initrd.sh b/pkgs/build-support/kernel/make-initrd.sh
index 0149c5d487ac..defa8a7d9b8e 100644
--- a/pkgs/build-support/kernel/make-initrd.sh
+++ b/pkgs/build-support/kernel/make-initrd.sh
@@ -1,5 +1,3 @@
-source $stdenv/setup
-
set -o pipefail
objects=($objects)
diff --git a/pkgs/build-support/kernel/modules-closure.sh b/pkgs/build-support/kernel/modules-closure.sh
index b581b6e7d403..b53c64e30525 100644
--- a/pkgs/build-support/kernel/modules-closure.sh
+++ b/pkgs/build-support/kernel/modules-closure.sh
@@ -1,5 +1,3 @@
-source $stdenv/setup
-
# When no modules are built, the $out/lib/modules directory will not
# exist. Because the rest of the script assumes it does exist, we
# handle this special case first.