Skip to content

Commit

Permalink
kernel: Use built-in dtbs_install target instead of rolling our own
Browse files Browse the repository at this point in the history
In particular, on aarch64 all the .dtb files will be in subdirectories
and *.dtb won't match anything.
  • Loading branch information
dezgeg committed Dec 10, 2016
1 parent ec7cdd9 commit bdab6fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkgs/os-specific/linux/kernel/manual-config.nix
Expand Up @@ -129,9 +129,7 @@ let
'' + (optionalString installsFirmware ''
mkdir -p $out/lib/firmware
'') + (if (platform ? kernelDTB && platform.kernelDTB) then ''
make $makeFlags "''${makeFlagsArray[@]}" dtbs
mkdir -p $out/dtbs
cp $buildRoot/arch/$karch/boot/dts/*.dtb $out/dtbs
make $makeFlags "''${makeFlagsArray[@]}" dtbs dtbs_install INSTALL_DTBS_PATH=$out/dtbs
'' else "") + (if isModular then ''
if [ -z "$dontStrip" ]; then
installFlagsArray+=("INSTALL_MOD_STRIP=1")
Expand Down

0 comments on commit bdab6fe

Please sign in to comment.