summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-02-09 03:59:16 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-02-09 03:59:16 +0000
commitc95a95dae60b9d76c1e54d2a4500d800719b79b9 (patch)
treee20632b7aaead1e91ad1afd1e15c402274fa3434 /sys/arch
parenta03d74c28ae88ea0249c512b98cf80f0df457d3e (diff)
Check for the existence of /bsd before trying to back it up to /obsd.
Fixes 'make install' when /bsd is not present for some reason. ok rob florian, "fine with me" deraadt
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/conf/Makefile.alpha4
-rw-r--r--sys/arch/amd64/conf/Makefile.amd644
-rw-r--r--sys/arch/arm64/conf/Makefile.arm644
-rw-r--r--sys/arch/armv7/conf/Makefile.armv74
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa4
-rw-r--r--sys/arch/i386/conf/Makefile.i3864
-rw-r--r--sys/arch/landisk/conf/Makefile.landisk4
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson4
-rw-r--r--sys/arch/luna88k/conf/Makefile.luna88k4
-rw-r--r--sys/arch/macppc/conf/Makefile.macppc4
-rw-r--r--sys/arch/octeon/conf/Makefile.octeon4
-rw-r--r--sys/arch/sgi/conf/Makefile.sgi4
-rw-r--r--sys/arch/socppc/conf/Makefile.socppc4
-rw-r--r--sys/arch/sparc64/conf/Makefile.sparc644
14 files changed, 28 insertions, 28 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha
index 3e6e97feb01..d3981b65b2c 100644
--- a/sys/arch/alpha/conf/Makefile.alpha
+++ b/sys/arch/alpha/conf/Makefile.alpha
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.alpha,v 1.110 2017/11/04 16:04:15 florian Exp $
+# $OpenBSD: Makefile.alpha,v 1.111 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -140,7 +140,7 @@ locore0.o: ${_machdir}/${_mach}/locore0.S assym.h
locore.o: ${_machdir}/${_mach}/locore.s assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64
index d709d434b1f..4a92fc123ac 100644
--- a/sys/arch/amd64/conf/Makefile.amd64
+++ b/sys/arch/amd64/conf/Makefile.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.amd64,v 1.95 2017/11/04 16:04:15 florian Exp $
+# $OpenBSD: Makefile.amd64,v 1.96 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -147,7 +147,7 @@ locore.o mutex.o vector.o copy.o spl.o: assym.h
mptramp.o acpi_wakecode.o vmm_support.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/arm64/conf/Makefile.arm64 b/sys/arch/arm64/conf/Makefile.arm64
index 15378b09379..bd56f7a1427 100644
--- a/sys/arch/arm64/conf/Makefile.arm64
+++ b/sys/arch/arm64/conf/Makefile.arm64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.arm64,v 1.26 2018/01/28 17:19:29 kettenis Exp $
+# $OpenBSD: Makefile.arm64,v 1.27 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -148,7 +148,7 @@ cpuswitch.o exception.o bcopy_page.o irq_dispatch.o support.o: assym.h
locore.o vectors.o trampoline.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/armv7/conf/Makefile.armv7 b/sys/arch/armv7/conf/Makefile.armv7
index f9cfa61a182..9b77191dcc7 100644
--- a/sys/arch/armv7/conf/Makefile.armv7
+++ b/sys/arch/armv7/conf/Makefile.armv7
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.armv7,v 1.38 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.armv7,v 1.39 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -156,7 +156,7 @@ vectors.o cpuswitch7.o exception.o bcopy_page.o irq_dispatch.o: assym.h
${_mach}_start.o locore.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
index 7e6833f4059..3bbf488cbed 100644
--- a/sys/arch/hppa/conf/Makefile.hppa
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa,v 1.104 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.hppa,v 1.105 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -149,7 +149,7 @@ locore.o: ${_machdir}/${_mach}/locore.S assym.h
fpemu.o spcopy.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index 6ef8882523a..0faba5424d5 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.121 2018/01/25 14:09:52 mpi Exp $
+# $OpenBSD: Makefile.i386,v 1.122 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -150,7 +150,7 @@ locore.o mutex.o in_cksum.o mptramp.o: assym.h
kvm86call.o acpi_wakecode.o vmm_support.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk
index a87efd66fb7..9cec25aae9e 100644
--- a/sys/arch/landisk/conf/Makefile.landisk
+++ b/sys/arch/landisk/conf/Makefile.landisk
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.landisk,v 1.76 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.landisk,v 1.77 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -141,7 +141,7 @@ locore0.o: ${_machdir}/${_mach}/locore0.S assym.h
locore_subr.o vectors.o in_cksum.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index b57784c32b1..8f38a69401c 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.69 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.loongson,v 1.70 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -155,7 +155,7 @@ lcore_access.o lcore_ddb.o lcore_float.o tlbhandler.o: assym.h
pmon32.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k
index 73fb5eb6adf..0afdfea3817 100644
--- a/sys/arch/luna88k/conf/Makefile.luna88k
+++ b/sys/arch/luna88k/conf/Makefile.luna88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.luna88k,v 1.79 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.luna88k,v 1.80 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -144,7 +144,7 @@ locore0.o: ${_machdir}/${_mach}/locore0.S assym.h
locore.o eh.o mutex.o process.o subr.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc
index c11370fb8d9..c1ece45dd40 100644
--- a/sys/arch/macppc/conf/Makefile.macppc
+++ b/sys/arch/macppc/conf/Makefile.macppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.macppc,v 1.93 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.macppc,v 1.94 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -141,7 +141,7 @@ locore.o: ${_machdir}/${_mach}/locore.S assym.h
mutex.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon
index c8059d4124b..0b96b55cef4 100644
--- a/sys/arch/octeon/conf/Makefile.octeon
+++ b/sys/arch/octeon/conf/Makefile.octeon
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.octeon,v 1.48 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.octeon,v 1.49 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -155,7 +155,7 @@ lcore_access.o lcore_ddb.o lcore_float.o tlbhandler.o: assym.h
mips64r2.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi
index 644adf5a641..9bdd05b6020 100644
--- a/sys/arch/sgi/conf/Makefile.sgi
+++ b/sys/arch/sgi/conf/Makefile.sgi
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sgi,v 1.93 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.sgi,v 1.94 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -156,7 +156,7 @@ tlb_tfp.o tlbhandler.o: assym.h
cache_tfp_subr.o ip30_nmi.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \
diff --git a/sys/arch/socppc/conf/Makefile.socppc b/sys/arch/socppc/conf/Makefile.socppc
index 1ce7f2141bd..6f2c68f2649 100644
--- a/sys/arch/socppc/conf/Makefile.socppc
+++ b/sys/arch/socppc/conf/Makefile.socppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.socppc,v 1.58 2017/09/28 16:16:34 patrick Exp $
+# $OpenBSD: Makefile.socppc,v 1.59 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -128,7 +128,7 @@ MACHINE_NAME!= uname -n
install: install-kernel-${MACHINE_NAME}
.if !target(install-kernel-${MACHINE_NAME}})
install-kernel-${MACHINE_NAME}:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
umask 077; cp bsd /nbsd
mv /nbsd /bsd
.endif
diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64
index 9d1d44db40f..9c6e231b506 100644
--- a/sys/arch/sparc64/conf/Makefile.sparc64
+++ b/sys/arch/sparc64/conf/Makefile.sparc64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc64,v 1.96 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.sparc64,v 1.97 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -138,7 +138,7 @@ locore.o: ${_machdir}/${_mach}/locore.s assym.h
hvcall.o in_cksum.o mutex.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \