From be53606e455ed6ccaaad1f5bd9cb9fc9ea4047e8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 12 Mar 2022 16:02:05 +0100 Subject: [PATCH] buildsys: make fwlist sort+concat atomic Signed-off-by: Thomas Lamprecht --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 00d9242..c41f9c2 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,9 @@ fw.list: fwlist-5.13.x-y-pve fw.list: fwlist-5.15.5-1-pve fw.list: fwlist-5.15.19-1-pve fw.list: fwlist-5.15.27-1-pve - sort -u $^ > $@ + rm -f $@.tmp $@ + sort -u $^ > $@.tmp + mv $@.tmp $@ fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fw.list rm -rf fwdata fwdata.tmp