Merge pull request #135104 from Artturin/raspberryeeprom

raspberrypi-eeprom: wrap rpi-eeprom-config
This commit is contained in:
Sandro 2021-08-23 12:18:25 +02:00 committed by GitHub
commit cfa2ffe3ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,18 +32,20 @@ stdenvNoCC.mkDerivation rec {
fixupPhase = '' fixupPhase = ''
patchShebangs $out/bin patchShebangs $out/bin
wrapProgram $out/bin/rpi-eeprom-update \ for i in rpi-eeprom-update rpi-eeprom-config; do
--set FIRMWARE_ROOT $out/share/rpi-eeprom \ wrapProgram $out/bin/$i \
${lib.optionalString stdenvNoCC.isAarch64 "--set VCMAILBOX ${libraspberrypi}/bin/vcmailbox"} \ --set FIRMWARE_ROOT $out/share/rpi-eeprom \
--prefix PATH : "${lib.makeBinPath ([ ${lib.optionalString stdenvNoCC.isAarch64 "--set VCMAILBOX ${libraspberrypi}/bin/vcmailbox"} \
binutils-unwrapped --prefix PATH : "${lib.makeBinPath ([
findutils binutils-unwrapped
kmod findutils
pciutils kmod
(placeholder "out") pciutils
] ++ lib.optionals stdenvNoCC.isAarch64 [ (placeholder "out")
libraspberrypi ] ++ lib.optionals stdenvNoCC.isAarch64 [
])}" libraspberrypi
])}"
done
''; '';
meta = with lib; { meta = with lib; {