2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 01:21:45 +00:00

[build] Avoid errors when build directory is mounted via NFS

Reported-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2014-05-13 11:20:04 +01:00
parent a8d1b50d8b
commit 779d65222e
2 changed files with 4 additions and 4 deletions

View File

@ -10,4 +10,4 @@ SRCDIRS += arch/x86/core/linux
$(BIN)/%.linux : $(BIN)/%.linux.tmp
$(QM)$(ECHO) " [FINISH] $@"
$(Q)cp -p $< $@
$(Q)$(CP) $< $@

View File

@ -37,13 +37,13 @@ out=$1
shift
dir=`mktemp -d bin/iso.dir.XXXXXX`
cfg=$dir/isolinux.cfg
cp -p $isolinux_bin $dir
cp $isolinux_bin $dir
# syslinux 6.x needs a file called ldlinux.c32
ldlinux_c32=$(dirname ${isolinux_bin})/ldlinux.c32
if [ -s ${ldlinux_c32} ]
then
cp -p ${ldlinux_c32} ${dir}
cp ${ldlinux_c32} ${dir}
fi
cat > $cfg <<EOF
@ -70,7 +70,7 @@ do
first=$g
echo LABEL $b
echo "" KERNEL $g
cp -p $f $dir/$g
cp $f $dir/$g
done >> $cfg
$mkisofs -quiet -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir
rm -fr $dir