]> xenbits.xensource.com Git - xen.git/commitdiff
automation: allow to rerun build script
authorOlaf Hering <olaf@aepfle.de>
Wed, 17 May 2023 05:57:22 +0000 (05:57 +0000)
committerStefano Stabellini <stefano.stabellini@amd.com>
Wed, 17 May 2023 23:14:27 +0000 (16:14 -0700)
Calling build twice in the same environment will fail because the
directory 'binaries' was already created before. Use mkdir -p to ignore
an existing directory and move on to the actual build.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
automation/scripts/build

index 197d085f3e07bf76a3c786cc1bc912f53d608cb1..9085cba3528187ab31614f301b59af8d15a9674e 100755 (executable)
@@ -36,7 +36,7 @@ fi
 cp xen/.config xen-config
 
 # Directory for the artefacts to be dumped into
-mkdir binaries
+mkdir -p binaries
 
 if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then
     # Cppcheck analysis invokes Xen-only build.