summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-30 20:39:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-30 20:39:06 +0000
commit0bf38a7eb809b401bbac6e1464319fbaa3f3fa63 (patch)
tree15ceac2b5cdfd7c969e8f605c3c151e8f5010bce /sys/arch
parent111a73c5e2fc053bc3465e6b20169b1f0693ac02 (diff)
Fix native builds of the luna88k boot block. Install it into /usr/mdec.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/luna88k/stand/Makefile.inc3
-rw-r--r--sys/arch/luna88k/stand/boot/Makefile7
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/luna88k/stand/Makefile.inc b/sys/arch/luna88k/stand/Makefile.inc
index b94ef519f74..07f626eea2b 100644
--- a/sys/arch/luna88k/stand/Makefile.inc
+++ b/sys/arch/luna88k/stand/Makefile.inc
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile.inc,v 1.1 2013/10/28 22:13:11 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2013/10/30 20:39:05 miod Exp $
# $NetBSD: Makefile.inc,v 1.1 2013/01/06 07:04:49 tsutsui Exp $
NOPIE=
+MDEC_DIR?= /usr/mdec
CFLAGS+= -Wall -Werror -fno-stack-protector
CFLAGS+= -mmemcpy
CFLAGS+= -fno-builtin-printf -fno-builtin-putchar -fno-builtin-vprintf
diff --git a/sys/arch/luna88k/stand/boot/Makefile b/sys/arch/luna88k/stand/boot/Makefile
index 209edc213d1..5474c639a5a 100644
--- a/sys/arch/luna88k/stand/boot/Makefile
+++ b/sys/arch/luna88k/stand/boot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2013/10/29 22:13:28 miod Exp $
+# $OpenBSD: Makefile,v 1.4 2013/10/30 20:39:05 miod Exp $
# $NetBSD: Makefile,v 1.9 2013/01/22 15:48:40 tsutsui Exp $
# @(#)Makefile 8.2 (Berkeley) 8/15/93
@@ -61,14 +61,15 @@ ${PROG}: ${LDSCRIPT} ${OBJS} ${LIBS}
${LD} ${LINKFORMAT} -x -o ${PROG}.elf ${OBJS} ${LIBS}
${OBJCOPY} -S -O a.out-m88k-openbsd --impure ${PROG}.elf ${PROG}
+install: ${PROG}
+ install -m 555 -g bin -o bin ${PROG} ${DESTDIR}${MDEC_DIR}
+
CLEANFILES+= ${PROG}.elf
.if ${MACHINE} != "luna88k"
-.if !make(obj)
.BEGIN:
@([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
@([ -h m88k ] || ln -s ${.CURDIR}/../../../m88k/include m88k)
.endif
-.endif
.include <bsd.prog.mk>