3
0
Fork 0
forked from mirrors/nixpkgs

kernel: Use built-in dtbs_install target instead of rolling our own

In particular, on aarch64 all the .dtb files will be in subdirectories
and *.dtb won't match anything.
This commit is contained in:
Tuomas Tynkkynen 2016-12-10 20:19:35 +02:00
parent ec7cdd95a7
commit bdab6fe5a1

View file

@ -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")