kernel: Install DTBs into a subdirectory

This avoids the pollution of the top-level kernel output directory and
also simplifies the boot entry generator script I will be using on ARM.
This commit is contained in:
Tuomas Tynkkynen 2015-05-06 11:40:53 +03:00
parent a6aa673849
commit 9fc72c8ab8

View File

@ -125,7 +125,8 @@ let
mkdir -p $out/lib/firmware mkdir -p $out/lib/firmware
'') + (if (platform ? kernelDTB && platform.kernelDTB) then '' '') + (if (platform ? kernelDTB && platform.kernelDTB) then ''
make $makeFlags "''${makeFlagsArray[@]}" dtbs make $makeFlags "''${makeFlagsArray[@]}" dtbs
cp $buildRoot/arch/$karch/boot/dts/*dtb $out mkdir -p $out/dtbs
cp $buildRoot/arch/$karch/boot/dts/*.dtb $out/dtbs
'' else "") + (if isModular then '' '' else "") + (if isModular then ''
make modules_install $makeFlags "''${makeFlagsArray[@]}" \ make modules_install $makeFlags "''${makeFlagsArray[@]}" \
$installFlags "''${installFlagsArray[@]}" $installFlags "''${installFlagsArray[@]}"