MF4: Add LOADER_TFTP_SUPPORT make.conf flag.

This commit is contained in:
Paul Saab 2000-11-04 08:43:13 +00:00
parent 1c1752872f
commit 9193b12844
3 changed files with 16 additions and 1 deletions

View File

@ -152,6 +152,12 @@ BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
# #
#BOOT_COMCONSOLE_SPEED= 115200 #BOOT_COMCONSOLE_SPEED= 115200
# #
# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining
# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet
# still mount the server's '/' (i.e. rather then load the server's kernel).
#
#LOADER_TFTP_SUPPORT= YES
# #
# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier. # By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier.
# If you have a XFree86 from before 3.0 that has the X distribution in # If you have a XFree86 from before 3.0 that has the X distribution in

View File

@ -152,6 +152,12 @@ BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
# #
#BOOT_COMCONSOLE_SPEED= 115200 #BOOT_COMCONSOLE_SPEED= 115200
# #
# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining
# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet
# still mount the server's '/' (i.e. rather then load the server's kernel).
#
#LOADER_TFTP_SUPPORT= YES
# #
# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier. # By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier.
# If you have a XFree86 from before 3.0 that has the X distribution in # If you have a XFree86 from before 3.0 that has the X distribution in

View File

@ -11,8 +11,11 @@ BINDIR?= /boot
SRCS= main.c conf.c SRCS= main.c conf.c
# Enable PXE TFTP or NFS support, not both. # Enable PXE TFTP or NFS support, not both.
.if defined(LOADER_TFTP_SUPPORT)
CFLAGS+= -DLOADER_TFTP_SUPPORT
.else
CFLAGS+= -DLOADER_NFS_SUPPORT CFLAGS+= -DLOADER_NFS_SUPPORT
#CFLAGS+= -DLOADER_TFTP_SUPPORT .endif
# Enable PnP and ISA-PnP code. # Enable PnP and ISA-PnP code.
HAVE_PNP= yes HAVE_PNP= yes