linuxManualConfig: use the default make target

We've basically been reimplementing this — by default it contains
vmlinux, dtbs (on applicable architectures), modules, and architecture
specific stuff like $(KBUILD_IMAGE) and a couple of other
miscellaneous files.
This commit is contained in:
Alyssa Ross 2023-03-19 23:55:12 +00:00
parent 7de3f08ce3
commit 41f788b121
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -198,18 +198,14 @@ let
'';
buildFlags = [
"DTC_FLAGS=-@"
"KBUILD_BUILD_VERSION=1-NixOS"
# Set by default in the kernel since a73619a845d5,
# replicated here to apply to older versions.
# Makes __FILE__ relative to the build directory.
"KCPPFLAGS=-fmacro-prefix-map=$(sourceRoot)/="
kernelConf.target
"vmlinux" # for "perf" and things like that
] ++ optional isModular "modules"
++ optionals buildDTBs ["dtbs" "DTC_FLAGS=-@"]
++ extraMakeFlags;
] ++ extraMakeFlags;
installFlags = [
"INSTALL_PATH=$(out)"