Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/stand a makefile template for filesystem-usin...
details: https://anonhg.NetBSD.org/src/rev/4dd8a5039ebd
branches: trunk
changeset: 471473:4dd8a5039ebd
user: cgd <cgd%NetBSD.org@localhost>
date: Fri Apr 02 03:34:09 1999 +0000
description:
a makefile template for filesystem-using primary boot blocks
diffstat:
sys/arch/alpha/stand/Makefile.bootxx | 39 ++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diffs (43 lines):
diff -r 46c85310ad5d -r 4dd8a5039ebd sys/arch/alpha/stand/Makefile.bootxx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/alpha/stand/Makefile.bootxx Fri Apr 02 03:34:09 1999 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile.bootxx,v 1.1 1999/04/02 03:34:09 cgd Exp $
+
+SRCS = start.S bootxx.c booted_dev.c blkdev.c prom.c prom_disp.S \
+ putstr.c panic_putstr.c
+
+BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
+
+CPPFLAGS += ${PRIMARY_CPPFLAGS} \
+ -DLIBSA_FS_SINGLECOMPONENT -DLIBSA_NO_FS_WRITE \
+ -DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SEEK \
+ -DLIBSA_SINGLE_DEVICE=blkdev \
+ -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" \
+ -DLIBSA_NO_TWIDDLE \
+ -DLIBSA_NO_FD_CHECKING \
+ -DLIBSA_NO_RAW_ACCESS \
+ -DLIBSA_NO_DISKLABEL_MSGS \
+ -DLIBSA_USE_MEMCPY
+
+CLEANFILES+= ${PROG}.sym
+
+${PROG}: ${PROG}.sym
+ @echo creating ${PROG} from ${PROG}.sym...
+ @objcopy --output-target=binary ${PROG}.sym ${PROG}
+ @chmod 644 ${PROG}
+ @ls -l ${PROG}
+ @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
+ ${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)
+
+SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
+.include "../Makefile.bootprogs"
+
+NETBSD_VERS!=sh ${.CURDIR}/../../../../conf/osrelease.sh
+CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
+
+${PROG}.sym: ${OBJS} ${LIBSA} ${LIBKERN}
+ ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
+ ${OBJS} ${LIBSA} ${LIBKERN}
+ @chmod 644 ${PROG}.sym
+ @${SIZE} ${PROG}.sym
Home |
Main Index |
Thread Index |
Old Index