PR/50729: Izumi Tsutsui: Add "small" disklabel
This commit is contained in:
parent
cb68fe56e3
commit
b6800095e8
|
@ -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"
|
||||
|
|
|
@ -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}
|
Loading…
Reference in New Issue