]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commit
copy-firmware: Fix 'No such file or directory' error.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 4 Feb 2025 00:43:24 +0000 (09:43 +0900)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 4 Feb 2025 01:28:32 +0000 (10:28 +0900)
commit51f770404afea4cfa5544fee4b6ffccf9dbd06cc
tree5d7f16f3a6ca8d727315e59dae98c33d70798f79
parent0fd450ee905e934ac51286fd290f77a87add971c
copy-firmware: Fix 'No such file or directory' error.

Attempting to clear the PARALLEL_ARGS_FILE variable when it was not
set would cause the above error message.  Clear it only when we know
we are using it.  This bug was only triggered when using the 'deb'
target, as it invokes the copy-firmware.sh script without any '-j'
argument, while the other install targets end up passing '-j1' when
not using parallel compression.

* copy-firmware.sh [NUM_JOBS > 1]: Only clear the content of
PARALLEL_ARGS_FILE when this condition is met.

Reported-by: Christophe Guillain <jean-christophe@guillain.net>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
copy-firmware.sh