1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2008-06-25 21:33:28 +00:00
|
|
|
WITHOUT_SSP=
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2004-02-09 14:11:58 +00:00
|
|
|
PROG= loader.sym
|
|
|
|
INTERNALPROG=
|
1999-06-29 21:23:26 +00:00
|
|
|
NEWVERSWHAT= "bootstrap loader" i386
|
1998-08-21 03:17:42 +00:00
|
|
|
|
1998-09-17 23:52:16 +00:00
|
|
|
# architecture-specific loader code
|
2004-02-06 21:58:32 +00:00
|
|
|
SRCS= main.c conf.c vers.c
|
1998-09-17 23:52:16 +00:00
|
|
|
|
2007-05-29 14:35:57 +00:00
|
|
|
# Put LOADER_FIREWIRE_SUPPORT=yes in /etc/make.conf for FireWire/dcons support
|
|
|
|
.if defined(LOADER_FIREWIRE_SUPPORT)
|
|
|
|
CFLAGS+= -DLOADER_FIREWIRE_SUPPORT
|
|
|
|
LIBFIREWIRE= ${.OBJDIR}/../libfirewire/libfirewire.a
|
|
|
|
.endif
|
|
|
|
|
Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.
This bring huge amount of changes, I'll enumerate only user-visible changes:
- Delegated Administration
Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.
- L2ARC
Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.
- slog
Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).
- vfs.zfs.super_owner
Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.
- chflags(2)
Not all the flags are supported. This still needs work.
- ZFSBoot
Support to boot off of ZFS pool. Not finished, AFAIK.
Submitted by: dfr
- Snapshot properties
- New failure modes
Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests
- Refquota, refreservation properties
Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.
- Sparse volumes
ZVOLs that don't reserve space in the pool.
- External attributes
Compatible with extattr(2).
- NFSv4-ACLs
Not sure about the status, might not be complete yet.
Submitted by: trasz
- Creation-time properties
- Regression tests for zpool(8) command.
Obtained from: OpenSolaris
2008-11-17 20:49:29 +00:00
|
|
|
# Put LOADER_ZFS_SUPPORT=yes in /etc/make.conf for ZFS support
|
|
|
|
.if defined(LOADER_ZFS_SUPPORT)
|
|
|
|
CFLAGS+= -DLOADER_ZFS_SUPPORT
|
|
|
|
LIBZFS= ${.OBJDIR}/../../zfs/libzfsboot.a
|
|
|
|
.endif
|
|
|
|
|
2000-04-08 01:22:14 +00:00
|
|
|
# Enable PXE TFTP or NFS support, not both.
|
2000-11-04 08:43:13 +00:00
|
|
|
.if defined(LOADER_TFTP_SUPPORT)
|
|
|
|
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
|
|
.else
|
2000-04-08 01:22:14 +00:00
|
|
|
CFLAGS+= -DLOADER_NFS_SUPPORT
|
2000-11-04 08:43:13 +00:00
|
|
|
.endif
|
2000-04-08 01:22:14 +00:00
|
|
|
|
2006-11-02 00:26:45 +00:00
|
|
|
# Include bcache code.
|
|
|
|
HAVE_BCACHE= yes
|
|
|
|
|
1998-09-14 18:27:06 +00:00
|
|
|
# Enable PnP and ISA-PnP code.
|
1998-10-21 20:10:33 +00:00
|
|
|
HAVE_PNP= yes
|
|
|
|
HAVE_ISABUS= yes
|
1998-09-14 18:27:06 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_FORTH} != "no"
|
1998-11-04 00:30:47 +00:00
|
|
|
# Enable BootForth
|
2000-01-30 06:56:27 +00:00
|
|
|
BOOT_FORTH= yes
|
|
|
|
CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/i386
|
1998-11-12 07:40:51 +00:00
|
|
|
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a
|
2000-02-04 20:57:09 +00:00
|
|
|
.endif
|
1998-11-04 00:30:47 +00:00
|
|
|
|
2005-06-01 15:32:57 +00:00
|
|
|
.if defined(LOADER_BZIP2_SUPPORT)
|
2001-09-18 14:52:36 +00:00
|
|
|
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
|
|
.endif
|
|
|
|
.if !defined(LOADER_NO_GZIP_SUPPORT)
|
|
|
|
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
|
|
.endif
|
|
|
|
|
1998-08-21 03:17:42 +00:00
|
|
|
# Always add MI sources
|
|
|
|
.PATH: ${.CURDIR}/../../common
|
2004-02-06 12:45:27 +00:00
|
|
|
.include "${.CURDIR}/../../common/Makefile.inc"
|
1998-10-14 07:08:16 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../common
|
2004-02-06 21:58:32 +00:00
|
|
|
CFLAGS+= -I.
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2004-02-12 21:43:50 +00:00
|
|
|
CLEANFILES= vers.c loader loader.bin loader.help
|
1998-08-21 03:17:42 +00:00
|
|
|
|
|
|
|
CFLAGS+= -Wall
|
2004-02-09 14:11:58 +00:00
|
|
|
LDFLAGS= -static -Ttext 0x0
|
1998-08-21 03:17:42 +00:00
|
|
|
|
|
|
|
# i386 standalone support library
|
|
|
|
LIBI386= ${.OBJDIR}/../libi386/libi386.a
|
|
|
|
CFLAGS+= -I${.CURDIR}/..
|
1998-09-17 23:52:16 +00:00
|
|
|
|
|
|
|
# BTX components
|
1998-09-25 17:14:16 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../btx/lib
|
1998-09-17 23:52:16 +00:00
|
|
|
|
1998-09-26 01:31:10 +00:00
|
|
|
# Debug me!
|
1998-11-04 03:42:36 +00:00
|
|
|
#CFLAGS+= -g
|
|
|
|
#LDFLAGS+= -g
|
1998-09-26 01:31:10 +00:00
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
# Pick up ../Makefile.inc early.
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
|
|
|
vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
|
1999-06-29 21:23:26 +00:00
|
|
|
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2004-02-09 14:11:58 +00:00
|
|
|
loader: loader.bin ${BTXLDR} ${BTXKERN}
|
2002-08-30 14:59:47 +00:00
|
|
|
btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \
|
2004-02-06 21:58:32 +00:00
|
|
|
-b ${BTXKERN} loader.bin
|
1998-09-17 23:52:16 +00:00
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
loader.bin: loader.sym
|
1998-10-21 20:10:33 +00:00
|
|
|
cp ${.ALLSRC} ${.TARGET}
|
2000-12-13 17:10:38 +00:00
|
|
|
strip -R .comment -R .note ${.TARGET}
|
1998-09-17 23:52:16 +00:00
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
loader.help: help.common help.i386
|
1999-01-18 19:05:27 +00:00
|
|
|
cat ${.ALLSRC} | awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET}
|
1998-12-15 14:21:30 +00:00
|
|
|
|
2002-04-17 16:56:36 +00:00
|
|
|
.PATH: ${.CURDIR}/../../forth
|
2004-02-06 21:58:32 +00:00
|
|
|
FILES= loader loader.help loader.4th support.4th loader.conf
|
2005-10-30 05:41:42 +00:00
|
|
|
FILES+= screen.4th frames.4th beastie.4th
|
2004-02-06 21:58:32 +00:00
|
|
|
# XXX INSTALLFLAGS_loader= -b
|
|
|
|
FILESMODE_loader= ${BINMODE} -b
|
2002-04-17 16:56:36 +00:00
|
|
|
FILESDIR_loader.conf= /boot/defaults
|
|
|
|
|
1999-04-18 09:21:12 +00:00
|
|
|
.if !exists(${DESTDIR}/boot/loader.rc)
|
2004-11-29 09:31:04 +00:00
|
|
|
FILES+= loader.rc
|
1999-01-03 20:50:35 +00:00
|
|
|
.endif
|
1998-12-15 14:21:30 +00:00
|
|
|
|
2004-02-27 14:10:09 +00:00
|
|
|
# XXX crt0.o needs to be first for pxeboot(8) to work
|
|
|
|
OBJS= ${BTXCRT}
|
|
|
|
|
Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.
This bring huge amount of changes, I'll enumerate only user-visible changes:
- Delegated Administration
Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.
- L2ARC
Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.
- slog
Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).
- vfs.zfs.super_owner
Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.
- chflags(2)
Not all the flags are supported. This still needs work.
- ZFSBoot
Support to boot off of ZFS pool. Not finished, AFAIK.
Submitted by: dfr
- Snapshot properties
- New failure modes
Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests
- Refquota, refreservation properties
Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.
- Sparse volumes
ZVOLs that don't reserve space in the pool.
- External attributes
Compatible with extattr(2).
- NFSv4-ACLs
Not sure about the status, might not be complete yet.
Submitted by: trasz
- Creation-time properties
- Regression tests for zpool(8) command.
Obtained from: OpenSolaris
2008-11-17 20:49:29 +00:00
|
|
|
DPADD= ${LIBFICL} ${LIBFIREWIRE} ${LIBZFS} ${LIBI386} ${LIBSTAND}
|
|
|
|
LDADD= ${LIBFICL} ${LIBFIREWIRE} ${LIBZFS} ${LIBI386} -lstand
|
1998-09-17 23:52:16 +00:00
|
|
|
|
2004-02-09 14:11:58 +00:00
|
|
|
.include <bsd.prog.mk>
|
1998-10-21 20:10:33 +00:00
|
|
|
|
2004-02-07 08:10:07 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2004-02-07 23:30:45 +00:00
|
|
|
beforedepend ${OBJS}: machine
|
2004-02-06 21:58:32 +00:00
|
|
|
CLEANFILES+= machine
|
1998-10-14 07:08:16 +00:00
|
|
|
machine:
|
|
|
|
ln -sf ${.CURDIR}/../../../i386/include machine
|
1998-10-21 20:10:33 +00:00
|
|
|
.endif
|