qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scripts/update-linux-headers.sh: Remove temporary directory inbetween
@ 2024-05-27  6:02 Thomas Huth
  2024-05-27 15:04 ` Cornelia Huck
  2024-05-28 15:56 ` Michael S. Tsirkin
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Huth @ 2024-05-27  6:02 UTC (permalink / raw)
  To: Cornelia Huck, Michael S. Tsirkin, Paolo Bonzini, qemu-devel

We are reusing the same temporary directory for installing the headers
of all targets, so there could be stale files here when switching from
one target to another. Make sure to delete the folder before installing
a new set of target headers into it.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 scripts/update-linux-headers.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index 8963c39189..fbf7e119bc 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -112,6 +112,7 @@ for arch in $ARCHLIST; do
         arch_var=ARCH
     fi
 
+    rm -rf "$hdrdir"
     make -C "$linux" O="$blddir" INSTALL_HDR_PATH="$hdrdir" $arch_var=$arch headers_install
 
     rm -rf "$output/linux-headers/asm-$arch"
-- 
2.45.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-28 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27  6:02 [PATCH] scripts/update-linux-headers.sh: Remove temporary directory inbetween Thomas Huth
2024-05-27 15:04 ` Cornelia Huck
2024-05-27 15:35   ` Thomas Huth
2024-05-27 15:43     ` Cornelia Huck
2024-05-28 15:56 ` Michael S. Tsirkin
2024-05-28 17:40   ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).