瀏覽代碼

[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>
tags/v1.20.1
Michael Brown 10 年之前
父節點
當前提交
779d65222e
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. 1
    1
      src/arch/x86/Makefile.linux
  2. 3
    3
      src/util/geniso

+ 1
- 1
src/arch/x86/Makefile.linux 查看文件

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

+ 3
- 3
src/util/geniso 查看文件

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

Loading…
取消
儲存