Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/stand force useful values for MACHINE_ARCH an...
details: https://anonhg.NetBSD.org/src/rev/79f54c112472
branches: trunk
changeset: 539863:79f54c112472
user: chs <chs%NetBSD.org@localhost>
date: Thu Nov 28 06:00:28 2002 +0000
description:
force useful values for MACHINE_ARCH and MACHINE.
remove the goofy hack to have the target be the LIF file,
just build the boot program with this Makefile.
just add to CFLAGS, don't override.
use NOMAN.
diffstat:
sys/arch/hp700/stand/Makefile.buildboot | 39 ++++++++++----------------------
1 files changed, 12 insertions(+), 27 deletions(-)
diffs (80 lines):
diff -r fc637ae2d14f -r 79f54c112472 sys/arch/hp700/stand/Makefile.buildboot
--- a/sys/arch/hp700/stand/Makefile.buildboot Thu Nov 28 05:59:06 2002 +0000
+++ b/sys/arch/hp700/stand/Makefile.buildboot Thu Nov 28 06:00:28 2002 +0000
@@ -1,5 +1,7 @@
-# $NetBSD: Makefile.buildboot,v 1.1 2002/06/06 19:48:11 fredette Exp $
+# $NetBSD: Makefile.buildboot,v 1.2 2002/11/28 06:00:28 chs Exp $
+MACHINE_ARCH=hppa
+MACHINE=hp700
RELOC= 700000
HEAP_LIMIT=0x7c0000
#DEBUGFLAGS=-DDEBUG
@@ -14,17 +16,15 @@
.PATH: ${.CURDIR}/../common
-PROG= ${PROGAOUT}.lif
-
SRCS= ${PROGSOURCE} ${COMMONSOURCE} ${DRIVERSOURCE}
-MKMAN= no
+NOMAN=
STRIPFLAG=
BINMODE= 444
CLEANFILES+= ${PROGAOUT} vers.c vers.o
CPPFLAGS+= -nostdinc -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. -I${.OBJDIR}
-CFLAGS= -Os -msoft-float -Wno-main
+CFLAGS+= -Os -msoft-float -Wno-main
CFLAGS+= -fno-builtin
CFLAGS+= -mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0
@@ -35,11 +35,6 @@
vers.c: ${.CURDIR}/version
sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version hp700 ${NEWVERSWHAT}
-${PROG}: ${PROGAOUT} ${MKBOOT_PROG}
- -@cp ${PROGAOUT} ${PROGAOUT}.gdb
- ${STRIP} ${PROGAOUT}
- ${MKBOOT_PROG} -v ${PROGAOUT} ${ADDBOOT} ${PROG}
-
CPPFLAGS+= -D_STANDALONE -Dhp700 ${DEBUGFLAGS}
CPPFLAGS+= -DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
CPPFLAGS+= -DNO_NET -D__INTERNAL_LIBSA_CREAD -DCOMPAT_UFS
@@ -48,17 +43,6 @@
lf.c lif.c machdep.c pdc.c time.c
DRIVERSOURCE=
-.ifnmake(print-objdir)
-MKBOOTOBJDIR!= cd ${.CURDIR}/../mkboot ; ${MAKE} print-objdir
-MKBOOT_PROG?= ${MKBOOTOBJDIR}/mkboot
-.endif
-
-# Make sure ${MKBOOT_PROG} is always available
-${MKBOOTOBJDIR}/mkboot:
- @cd ${MKBOOTDIR} && ${MAKE} depend && ${MAKE}
-
-.include <bsd.prog.mk>
-
### find out what to use for libkern
KERN_AS= library
.include "${S}/lib/libkern/Makefile.inc"
@@ -77,10 +61,11 @@
LIBSA= ${SALIB}
LDFLAGS+= -Bstatic -nostartfiles -nostdlib -N -Ttext $(RELOC)
-LDFLAGS+= -T ${.CURDIR}/ld.script -Map ${PROGAOUT}.map
+LDFLAGS+= -T ${.CURDIR}/ld.script -Map ${PROG}.map
-${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
- ${LD} ${LDFLAGS} -o ${PROGAOUT} \
- ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
- @${SIZE} ${PROGAOUT}
- @echo ${PROGAOUT} total size should not exceed XXXX bytes
+${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+ ${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+ @${SIZE} ${PROG}
+ @echo ${PROG} total size should not exceed XXXX bytes
+
+.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index