mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
scripts/update-linux-headers.sh: Remove temporary directory inbetween
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. Message-ID: <20240527060243.12647-1-thuth@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
84aacddd80
commit
3efc75ad9d
|
@ -112,6 +112,7 @@ for arch in $ARCHLIST; do
|
||||||
arch_var=ARCH
|
arch_var=ARCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -rf "$hdrdir"
|
||||||
make -C "$linux" O="$blddir" INSTALL_HDR_PATH="$hdrdir" $arch_var=$arch headers_install
|
make -C "$linux" O="$blddir" INSTALL_HDR_PATH="$hdrdir" $arch_var=$arch headers_install
|
||||||
|
|
||||||
rm -rf "$output/linux-headers/asm-$arch"
|
rm -rf "$output/linux-headers/asm-$arch"
|
||||||
|
|
Loading…
Reference in a new issue