[build] Allow safe concurrent builds of .iso, .liso and .sdsk targets

The geniso, genliso and gensdsk scripts contain hard-coded temporary
directory names, and so could potentially collide with each other when
run as part of a concurrent build (e.g. "make -j 4").

Fix by using mktemp to generate suitable temporary directory names.
This commit is contained in:
Michael Brown
2009-08-02 11:17:02 +01:00
parent b570c2efd8
commit f42b2932f8
3 changed files with 5 additions and 8 deletions
+2 -3
View File
@@ -26,13 +26,12 @@ esac
out=$1
shift
dir=bin/liso.dir
mkdir -p $dir
dir=`mktemp -d bin/liso.dir.XXXXXX`
img=$dir/boot.img
mformat -f 1440 -C -i $img ::
cfg=bin/syslinux.cfg
cfg=$dir/syslinux.cfg
cat > $cfg <<EOF
# These default options can be changed in the genliso script
SAY gPXE ISO boot image generated by genliso