Skip to content

Commit b564247

Browse files
committed
cfg80211: make certificate generation more robust
If all net/wireless/certs/*.hex files are deleted, the build will hang at this point since the 'cat' command will have no arguments. Do "echo | cat - ..." so that even if the "..." part is empty, the whole thing won't hang. Cc: [email protected] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20210618133832.c989056c3664.Ic3b77531d00b30b26dcd69c64e55ae2f60c3f31e@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 1236af3 commit b564247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/wireless/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $(obj)/shipped-certs.c: $(wildcard $(srctree)/$(src)/certs/*.hex)
2828
@$(kecho) " GEN $@"
2929
@(echo '#include "reg.h"'; \
3030
echo 'const u8 shipped_regdb_certs[] = {'; \
31-
cat $^ ; \
31+
echo | cat - $^ ; \
3232
echo '};'; \
3333
echo 'unsigned int shipped_regdb_certs_len = sizeof(shipped_regdb_certs);'; \
3434
) > $@

0 commit comments

Comments
 (0)