Repository navigation
linux: trivial builder clean‐ups - #571141
Conversation
Review dismissed automatically
|
Only kernel rebuilds so it's fine for this to go to staging-nixos. |
zowoq
left a comment
There was a problem hiding this comment.
LGTM, also built a couple of aarch64 native and riscv cross kernels.
Otherwise the discrepancies can cause configuration inconsistency because of e.g. Kconfig settings having defaults that depend on the presence of the `openssl(1)` command.
They’re already appended to `makeFlags`, so this was appending them twice.
Fixed upstream in 5.11 with [436e980e2ed526832de822cbf13c317a458b78e1], backported to 5.10 with [3ca425885bb74e8b286308707c067aaabc6f4fce], and moved out of the Makefile entirely in 6.6 with [79b96c332241c06b4c63cfa0e23a539558b79b90]. [436e980e2ed526832de822cbf13c317a458b78e1]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=436e980e2ed526832de822cbf13c317a458b78e1> [3ca425885bb74e8b286308707c067aaabc6f4fce]: <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3ca425885bb74e8b286308707c067aaabc6f4fce> [79b96c332241c06b4c63cfa0e23a539558b79b90]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=79b96c332241c06b4c63cfa0e23a539558b79b90>
The hardened kernel was removed, but this is in any case redundant to the blanket `patchShebangs scripts` a few lines below.
This has been obsolete since 4.15; see upstream commit [be0f272bfc83797f70d44faca86954df62e2bbc0]. [be0f272bfc83797f70d44faca86954df62e2bbc0]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=be0f272bfc83797f70d44faca86954df62e2bbc0>
This was fixed in 4.16 with [e847f6aaf68f6156a5e9b26afe1a7316b9ab697e], as was observed for 4.20 in the [original PR]. [e847f6aaf68f6156a5e9b26afe1a7316b9ab697e]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e847f6aaf68f6156a5e9b26afe1a7316b9ab697e> [original PR]: <#57100>
Kernel images already depend on `vmlinux` (also, `perf(8)` doesn’t really need it any more, so the comment is inaccurate).
The `enableParallelInstalling` logic already handles this by default.
No reason for this to be inconsistent between invocations, and it keeps flags out of our build targets variable.
Per [the documentation]: > The value has to be a string that can be passed to date -d. So we don’t need to run this through `date(1)` ourselves. [the documentation]: <https://docs.kernel.org/kbuild/kbuild.html#kbuild-build-timestamp>
No reason for this to be inconsistent between invocations, and it keeps flags out of our build targets variable.
This is more consistent with how we handle the `modules` variable and allows for easier reuse.
There’s no reason to run this separately.
This keeps targets out of our flags variable.
4bff6e6 to
f64e61c
Compare
There was a problem hiding this comment.
The PR's base branch is set to staging-nixos, but this PR causes 1707 rebuilds.
It is therefore considered a mass rebuild.
Please change the base branch to the right base branch for your changes (probably staging).
| # Keep some extra files on some arches (powerpc, aarch64) | ||
| for f in arch/powerpc/lib/crtsavres.o arch/arm64/kernel/ftrace-mod.o; do | ||
| # Keep an extra file on powerpc | ||
| for f in arch/powerpc/lib/crtsavres.o; do |
There was a problem hiding this comment.
This is only one static value now, so it doesn't need to be a loop any more.
There was a problem hiding this comment.
This is an intermediate state - we add more back to the list in the next PR (though it also gets rewritten at the same time). Seems best not to collapse a loop over a list when we know it's going to grow again; otherwise I'd have cleaned this up, possibly in a separate commit.
Miscellaneous clean‐ups in preparation for the image rebuild and deterministic module signing work, mostly removing long‐obsolete things and moving logic outside of Bash where possible. This is best reviewed commit‐by‐commit.
This is part of the end‐to‐end NixOS boot security project, funded through NGI Fediversity Fund, a fund established by NLnet with financial support from the European Commission’s Next Generation Internet programme.
Things done
linux_5_10,linux,linux_latest)passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.