1abd4b8f46
lose when booted from pxeboot. . make sure that i386_alldisks gets initialized even if bios geometry information is not available in the bootinfo . if i386_alldisks is not initialized, have sysctl return EOPNOTSUPP . compile pxeboot with -DPASS_BIOSGEOM and I386_INCLUDE_DISK=yes this may increase the size of pxeboot which is required to run in 64k. However, it seems to be working ok on my system
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2004/08/05 18:04:35 dbj Exp $
|
|
|
|
S= ${.CURDIR}/../../../../
|
|
|
|
BASE?= pxeboot_ia32
|
|
PROG= ${BASE}.bin
|
|
NOMAN= # defined
|
|
NEWVERSWHAT= "PXE Boot"
|
|
STARTFILE= ${PXESTART}
|
|
RELOC= 0x0
|
|
|
|
.if (${BASE} != "pxeboot_ia32")
|
|
.PATH.c: ${.CURDIR}/../pxeboot
|
|
.PATH.S: ${.CURDIR}/../pxeboot
|
|
.endif
|
|
|
|
SRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S
|
|
# use our own nfs implementation
|
|
.PATH: ${.CURDIR}/../libsa
|
|
SRCS+= nfs.c
|
|
|
|
CPPFLAGS+= -DSLOW # for libz
|
|
|
|
.if (${BASE} == "pxeboot_ia32")
|
|
# Various serial line configurations
|
|
CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
|
|
# or
|
|
#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD
|
|
# or
|
|
#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO
|
|
# and maybe
|
|
#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600
|
|
.endif
|
|
|
|
.if (${BASE} == "pxeboot_ia32_com0")
|
|
CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL
|
|
.endif
|
|
|
|
CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
|
|
CPPFLAGS+= -DSUPPORT_TFTP
|
|
CPPFLAGS+= -DSUPPORT_NFS
|
|
#CPPFLAGS+= -DNFS_NOSYMLINK
|
|
|
|
CPPFLAGS+= -DPASS_MEMMAP
|
|
|
|
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
|
|
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
|
|
|
|
SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000
|
|
SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels
|
|
|
|
CPPFLAGS+= -DPASS_BIOSGEOM
|
|
# if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no
|
|
#I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no
|
|
|
|
.if (${BASE} == "pxeboot_ia32")
|
|
VERSIONFILE= ${.CURDIR}/version
|
|
.else
|
|
VERSIONFILE= ${.CURDIR}/../pxeboot/version
|
|
.endif
|
|
|
|
.include "../Makefile.booters"
|