Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/stand/gzboot Also build a flat binary versio...



details:   https://anonhg.NetBSD.org/src/rev/764c08a9af20
branches:  trunk
changeset: 546429:764c08a9af20
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 29 05:15:14 2003 +0000

description:
Also build a flat binary version of the gzboot program.

diffstat:

 sys/arch/evbarm/stand/gzboot/Makefile.gzboot |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 8f46784c2f75 -r 764c08a9af20 sys/arch/evbarm/stand/gzboot/Makefile.gzboot
--- a/sys/arch/evbarm/stand/gzboot/Makefile.gzboot      Tue Apr 29 05:05:41 2003 +0000
+++ b/sys/arch/evbarm/stand/gzboot/Makefile.gzboot      Tue Apr 29 05:15:14 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.gzboot,v 1.6 2003/03/29 22:25:25 thorpej Exp $
+#      $NetBSD: Makefile.gzboot,v 1.7 2003/04/29 05:15:14 thorpej Exp $
 
 NOMAN=  # defined
 
@@ -7,7 +7,8 @@
 EVBARM_STAND=  ${S}/arch/evbarm/stand
 
 BASE=  gzboot_${PLATFORM}_${RELOC}
-PROG=  ${BASE}.sym
+PROGSYM=${BASE}.sym
+PROG=  ${BASE}.bin
 WARNS= 1
 
 NEWVERSWHAT=   "Gzip Boot"
@@ -95,8 +96,11 @@
        sh ${S}/conf/newvers_stand.sh ${.ALLSRC} '${PLATFORM}' \
            ${NEWVERSWHAT}
 
-${PROG}: ${STARTFILE} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
-       ${LD} -o ${BASE}.sym ${LDFLAGS} ${STARTFILE} \
-           ${OBJS} ${LIBLIST} > ${BASE}.list
+${PROG}: ${PROGSYM}
+       ${OBJCOPY} -O binary ${PROGSYM} ${.TARGET}
 
 .include <bsd.prog.mk>
+
+${PROGSYM}: ${STARTFILE} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+       ${LD} -o ${.TARGET} ${LDFLAGS} ${STARTFILE} \
+           ${OBJS} ${LIBLIST} > ${BASE}.list



Home | Main Index | Thread Index | Old Index