boot_ufs (primary bootloader) expects /boot OMAGIC a.out. trunk
authorisaki <isaki@NetBSD.org>
Fri, 14 Jun 2019 14:15:53 +0000
branchtrunk
changeset 452004 5e91de31a0cf
parent 452003 2d6d70d4519f
child 452005 23dc45897ff1
boot_ufs (primary bootloader) expects /boot OMAGIC a.out.
sys/arch/x68k/stand/boot/Makefile
--- a/sys/arch/x68k/stand/boot/Makefile	Fri Jun 14 11:50:35 2019 +0000
+++ b/sys/arch/x68k/stand/boot/Makefile	Fri Jun 14 14:15:53 2019 +0000
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.30 2019/01/02 00:48:13 christos Exp $
+#	$NetBSD: Makefile,v 1.31 2019/06/14 14:15:53 isaki Exp $
 
 NOMAN=		# defined
 
@@ -42,6 +42,7 @@
 #CPPFLAGS+=	-DDEBUG
 CFLAGS=		-Wno-main -Os -m68020-60
 LINKFLAGS=	-N -static -T ${.CURDIR}/../boot/boot.ldscript
+ELF2AOUT_OPTS=	-O
 LIBIOCS!=	cd $M/stand/libiocs && ${PRINTOBJDIR}
 LIBSA!=		cd $M/stand/libsa && ${PRINTOBJDIR}
 L=		${LIBSA}/lib
@@ -55,7 +56,7 @@
 	${_MKTARGET_LINK}
 	${LD} ${LINKFLAGS} -o ${PROG}.sym ${OBJS} ${LDLIBS}
 	${STRIP} ${PROG}.sym -o ${PROG}.strip
-	${M68K_ELF2AOUT} ${PROG}.strip ${PROG}
+	${M68K_ELF2AOUT} ${ELF2AOUT_OPTS} ${PROG}.strip ${PROG}
 
 CLEANFILES+=	${PROG}.sym ${PROG}.strip