Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils PR/50729: Izumi Tsutsui: Add "small" disklabel



details:   https://anonhg.NetBSD.org/src/rev/0fbba23c9e88
branches:  trunk
changeset: 343366:0fbba23c9e88
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 31 18:56:49 2016 +0000

description:
PR/50729: Izumi Tsutsui: Add "small" disklabel

diffstat:

 distrib/utils/Makefile             |   4 +-
 distrib/utils/x_disklabel/Makefile |  40 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 2 deletions(-)

diffs (59 lines):

diff -r 0f93eb89e3ab -r 0fbba23c9e88 distrib/utils/Makefile
--- a/distrib/utils/Makefile    Sun Jan 31 18:47:14 2016 +0000
+++ b/distrib/utils/Makefile    Sun Jan 31 18:56:49 2016 +0000
@@ -1,9 +1,9 @@
-#      $NetBSD: Makefile,v 1.21 2014/07/26 19:35:10 dholland Exp $
+#      $NetBSD: Makefile,v 1.22 2016/01/31 18:56:49 christos Exp $
 
 .if make(obj)
 
 SUBDIR=        libhack more ssh tls \
-       x_ed x_gzip x_ifconfig \
+       x_disklabel x_ed x_gzip x_ifconfig \
        x_netstat x_ping x_route x_umount zcat
 
 .if ${MACHINE} == "acorn32"
diff -r 0f93eb89e3ab -r 0fbba23c9e88 distrib/utils/x_disklabel/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/utils/x_disklabel/Makefile        Sun Jan 31 18:56:49 2016 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2016/01/31 18:56:49 christos Exp $
+# Build a small disklabel (for tiny boot media)
+
+SRCDIR=        ${.CURDIR}/../../../sbin/disklabel
+
+PROG=  disklabel
+SRCS=  main.c dkcksum.c printlabel.c
+#SRCS+=        interact.c
+NOMAN= # defined
+
+CPPFLAGS+=     -DNO_INTERACT
+CPPFLAGS+=     -DNATIVELABEL_ONLY
+
+DPADD+= ${LIBUTIL}
+LDADD+= -lutil
+
+# these have additional requirements on the alignment of a partition
+.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
+       || (${MACHINE} == "sun3")
+CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
+.endif
+
+.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
+# Support FileCore boot block
+CPPFLAGS+= -DUSE_ACORN
+.endif
+
+.if (${MACHINE_ARCH} == "alpha")
+# alpha requires boot block checksum
+CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
+.endif
+
+.if (${MACHINE_ARCH} == "vax")
+# vax requires labels in alternative sectors on SMD disk
+CPPFLAGS+= -DVAX_ALTLABELS
+.endif
+
+.include <bsd.prog.mk>
+
+.PATH: ${SRCDIR}



Home | Main Index | Thread Index | Old Index