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

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