Skip to content

Commit

Permalink
linuxManualConfig: use the default make target
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alyssais committed Mar 19, 2023
1 parent 7de3f08 commit 41f788b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkgs/os-specific/linux/kernel/manual-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 41f788b

Please sign in to comment.