diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-06-26 18:01:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 18:01:29 +0000 |
commit | 4e9dcbbbc60fab8995c89c7a6298b0ae47717d35 (patch) | |
tree | 7a8880e9a0535a1a1bd65ee5159e3e562e067000 /pkgs/build-support | |
parent | 5e94616bdbf99eae27a5274f7bcc845ef07ffe0d (diff) | |
parent | e98c3025216bde4a3c5a51ab58882e7a64ea2bb7 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/kernel/compress-firmware-xz.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/build-support/kernel/compress-firmware-xz.nix b/pkgs/build-support/kernel/compress-firmware-xz.nix index 6a797226aa671..cfb06a5c0f159 100644 --- a/pkgs/build-support/kernel/compress-firmware-xz.nix +++ b/pkgs/build-support/kernel/compress-firmware-xz.nix @@ -1,8 +1,12 @@ -{ runCommand }: +{ runCommand, lib }: firmware: -runCommand "${firmware.name}-xz" {} '' +let + args = lib.optionalAttrs (firmware ? meta) { inherit (firmware) meta; }; +in + +runCommand "${firmware.name}-xz" args '' mkdir -p $out/lib (cd ${firmware} && find lib/firmware -type d -print0) | (cd $out && xargs -0 mkdir -v --) |