Sat Jan 23 22:29:29 2016 UTC ()
We'll define the kernel types for standalone code.


(christos)
diff -r1.68 -r1.69 src/sys/arch/i386/stand/boot/Makefile.boot
diff -r1.29 -r1.30 src/sys/arch/i386/stand/dosboot/Makefile
diff -r1.23 -r1.24 src/sys/arch/i386/stand/pxeboot/Makefile

cvs diff -r1.68 -r1.69 src/sys/arch/i386/stand/boot/Makefile.boot (switch to unified diff)

--- src/sys/arch/i386/stand/boot/Makefile.boot 2016/01/23 21:22:47 1.68
+++ src/sys/arch/i386/stand/boot/Makefile.boot 2016/01/23 22:29:29 1.69
@@ -1,159 +1,159 @@ @@ -1,159 +1,159 @@
1# $NetBSD: Makefile.boot,v 1.68 2016/01/23 21:22:47 christos Exp $ 1# $NetBSD: Makefile.boot,v 1.69 2016/01/23 22:29:29 christos Exp $
2 2
3S= ${.CURDIR}/../../../../.. 3S= ${.CURDIR}/../../../../..
4 4
5NOMAN= 5NOMAN=
6PROG?= boot 6PROG?= boot
7NEWVERSWHAT?= "BIOS Boot" 7NEWVERSWHAT?= "BIOS Boot"
8VERSIONFILE?= ${.CURDIR}/../version 8VERSIONFILE?= ${.CURDIR}/../version
9 9
10AFLAGS.biosboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:} 10AFLAGS.biosboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
11 11
12SOURCES?= biosboot.S boot2.c conf.c devopen.c exec.c 12SOURCES?= biosboot.S boot2.c conf.c devopen.c exec.c
13SRCS= ${SOURCES} 13SRCS= ${SOURCES}
14.if !make(depend) 14.if !make(depend)
15SRCS+= vers.c 15SRCS+= vers.c
16.endif 16.endif
17 17
18PIE_CFLAGS= 18PIE_CFLAGS=
19PIE_AFLAGS= 19PIE_AFLAGS=
20PIE_LDFLAGS= 20PIE_LDFLAGS=
21 21
22.include <bsd.own.mk> 22.include <bsd.own.mk>
23 23
24STRIPFLAG= # nothing 24STRIPFLAG= # nothing
25 25
26LIBCRT0= # nothing 26LIBCRT0= # nothing
27LIBCRTI= # nothing 27LIBCRTI= # nothing
28LIBCRTBEGIN= # nothing 28LIBCRTBEGIN= # nothing
29LIBCRTEND= # nothing 29LIBCRTEND= # nothing
30LIBC= # nothing 30LIBC= # nothing
31 31
32BINDIR=/usr/mdec 32BINDIR=/usr/mdec
33BINMODE=444 33BINMODE=444
34 34
35.PATH: ${.CURDIR}/.. ${.CURDIR}/../../lib 35.PATH: ${.CURDIR}/.. ${.CURDIR}/../../lib
36 36
37LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,boot_start 37LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,boot_start
38CPPFLAGS+= -I ${.CURDIR}/.. -I ${.CURDIR}/../../lib -I ${S}/lib/libsa 38CPPFLAGS+= -I ${.CURDIR}/.. -I ${.CURDIR}/../../lib -I ${S}/lib/libsa
39CPPFLAGS+= -I ${.OBJDIR} -D_KERNTYPES 39CPPFLAGS+= -I ${.OBJDIR}
40# Make sure we override any optimization options specified by the user 40# Make sure we override any optimization options specified by the user
41COPTS= -Os 41COPTS= -Os
42 42
43.if ${MACHINE_ARCH} == "x86_64" 43.if ${MACHINE_ARCH} == "x86_64"
44LDFLAGS+= -Wl,-m,elf_i386 44LDFLAGS+= -Wl,-m,elf_i386
45AFLAGS+= -m32 45AFLAGS+= -m32
46CPUFLAGS= -m32 46CPUFLAGS= -m32
47LIBKERN_ARCH=i386 47LIBKERN_ARCH=i386
48KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386" 48KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386"
49.else 49.else
50CPUFLAGS= -march=i386 -mtune=i386 50CPUFLAGS= -march=i386 -mtune=i386
51.endif 51.endif
52 52
53CFLAGS+= -mno-sse -mno-sse2 -mno-sse3 53CFLAGS+= -mno-sse -mno-sse2 -mno-sse3
54 54
55COPTS+= -ffreestanding 55COPTS+= -ffreestanding
56CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes 56CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes
57CPPFLAGS+= -nostdinc -D_STANDALONE 57CPPFLAGS+= -nostdinc -D_STANDALONE
58CPPFLAGS+= -I$S 58CPPFLAGS+= -I$S
59 59
60CPPFLAGS+= -DSUPPORT_PS2 60CPPFLAGS+= -DSUPPORT_PS2
61CPPFLAGS+= -DDIRECT_SERIAL 61CPPFLAGS+= -DDIRECT_SERIAL
62CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev 62CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev
63 63
64CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed 64CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed
65CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr 65CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr
66CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap 66CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap
67 67
68CPPFLAGS+= -DSUPPORT_CD9660 68CPPFLAGS+= -DSUPPORT_CD9660
69CPPFLAGS+= -DSUPPORT_USTARFS 69CPPFLAGS+= -DSUPPORT_USTARFS
70CPPFLAGS+= -DSUPPORT_DOSFS 70CPPFLAGS+= -DSUPPORT_DOSFS
71CPPFLAGS+= -DSUPPORT_EXT2FS 71CPPFLAGS+= -DSUPPORT_EXT2FS
72#CPPFLAGS+= -DSUPPORT_MINIXFS3 72#CPPFLAGS+= -DSUPPORT_MINIXFS3
73CPPFLAGS+= -DPASS_BIOSGEOM 73CPPFLAGS+= -DPASS_BIOSGEOM
74CPPFLAGS+= -DPASS_MEMMAP 74CPPFLAGS+= -DPASS_MEMMAP
75#CPPFLAGS+= -DBOOTPASSWD 75#CPPFLAGS+= -DBOOTPASSWD
76CPPFLAGS+= -DEPIA_HACK 76CPPFLAGS+= -DEPIA_HACK
77#CPPFLAGS+= -DDEBUG_MEMSIZE 77#CPPFLAGS+= -DDEBUG_MEMSIZE
78#CPPFLAGS+= -DBOOT_MSG_COM0 78#CPPFLAGS+= -DBOOT_MSG_COM0
79CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 79CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
80 80
81# The biosboot code is linked to 'virtual' address of zero and is 81# The biosboot code is linked to 'virtual' address of zero and is
82# loaded at physical address 0x10000. 82# loaded at physical address 0x10000.
83# XXX The heap values should be determined from _end. 83# XXX The heap values should be determined from _end.
84SAMISCCPPFLAGS+= -DHEAP_START=0x40000 -DHEAP_LIMIT=0x70000 84SAMISCCPPFLAGS+= -DHEAP_START=0x40000 -DHEAP_LIMIT=0x70000
85SAMISCCPPFLAGS+= -DLIBSA_PRINTF_LONGLONG_SUPPORT 85SAMISCCPPFLAGS+= -DLIBSA_PRINTF_LONGLONG_SUPPORT
86SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 86SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels
87SAMISCMAKEFLAGS+= SA_INCLUDE_NET=no # Netboot via TFTP, NFS 87SAMISCMAKEFLAGS+= SA_INCLUDE_NET=no # Netboot via TFTP, NFS
88 88
89CPPFLAGS+= -Wno-pointer-sign 89CPPFLAGS+= -Wno-pointer-sign
90 90
91# CPPFLAGS+= -DBOOTXX_RAID1_SUPPORT 91# CPPFLAGS+= -DBOOTXX_RAID1_SUPPORT
92 92
93I386_STAND_DIR?= $S/arch/i386/stand 93I386_STAND_DIR?= $S/arch/i386/stand
94 94
95### find out what to use for libi386 95### find out what to use for libi386
96I386DIR= ${I386_STAND_DIR}/lib 96I386DIR= ${I386_STAND_DIR}/lib
97.include "${I386DIR}/Makefile.inc" 97.include "${I386DIR}/Makefile.inc"
98LIBI386= ${I386LIB} 98LIBI386= ${I386LIB}
99 99
100### find out what to use for libsa 100### find out what to use for libsa
101SA_AS= library 101SA_AS= library
102SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 102SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
103SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes" 103SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
104.include "${S}/lib/libsa/Makefile.inc" 104.include "${S}/lib/libsa/Makefile.inc"
105LIBSA= ${SALIB} 105LIBSA= ${SALIB}
106 106
107### find out what to use for libkern 107### find out what to use for libkern
108KERN_AS= library 108KERN_AS= library
109.include "${S}/lib/libkern/Makefile.inc" 109.include "${S}/lib/libkern/Makefile.inc"
110LIBKERN= ${KERNLIB} 110LIBKERN= ${KERNLIB}
111 111
112### find out what to use for libz 112### find out what to use for libz
113Z_AS= library 113Z_AS= library
114.include "${S}/lib/libz/Makefile.inc" 114.include "${S}/lib/libz/Makefile.inc"
115LIBZ= ${ZLIB} 115LIBZ= ${ZLIB}
116 116
117LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript 117LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
118 118
119cleandir distclean: .WAIT cleanlibdir 119cleandir distclean: .WAIT cleanlibdir
120 120
121cleanlibdir: 121cleanlibdir:
122 -rm -rf lib 122 -rm -rf lib
123 123
124LIBLIST= ${LIBI386} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} ${LIBSA} 124LIBLIST= ${LIBI386} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} ${LIBSA}
125# LIBLIST= ${LIBSA} ${LIBKERN} ${LIBI386} ${LIBSA} ${LIBZ} ${LIBKERN} 125# LIBLIST= ${LIBSA} ${LIBKERN} ${LIBI386} ${LIBSA} ${LIBZ} ${LIBKERN}
126 126
127CLEANFILES+= ${PROG}.tmp ${PROG}.map ${PROG}.sym vers.c 127CLEANFILES+= ${PROG}.tmp ${PROG}.map ${PROG}.sym vers.c
128 128
129vers.c: ${VERSIONFILE} ${SOURCES} ${LIBLIST} ${.CURDIR}/../Makefile.boot 129vers.c: ${VERSIONFILE} ${SOURCES} ${LIBLIST} ${.CURDIR}/../Makefile.boot
130 ${HOST_SH} ${S}/conf/newvers_stand.sh ${VERSIONFILE} x86 ${NEWVERSWHAT} 130 ${HOST_SH} ${S}/conf/newvers_stand.sh ${VERSIONFILE} x86 ${NEWVERSWHAT}
131 131
132# Anything that calls 'real_to_prot' must have a %pc < 0x10000. 132# Anything that calls 'real_to_prot' must have a %pc < 0x10000.
133# We link the program, find the callers (all in libi386), then 133# We link the program, find the callers (all in libi386), then
134# explicitly pull in the required objects before any other library code. 134# explicitly pull in the required objects before any other library code.
135${PROG}: ${OBJS} ${LIBLIST} ${LDSCRIPT} ${.CURDIR}/../Makefile.boot 135${PROG}: ${OBJS} ${LIBLIST} ${LDSCRIPT} ${.CURDIR}/../Makefile.boot
136 ${_MKTARGET_LINK} 136 ${_MKTARGET_LINK}
137 bb="$$( ${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,0 -Wl,-cref \ 137 bb="$$( ${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,0 -Wl,-cref \
138 ${OBJS} ${LIBLIST} | ( \ 138 ${OBJS} ${LIBLIST} | ( \
139 while read symbol file; do \ 139 while read symbol file; do \
140 [ -z "$$file" ] && continue; \ 140 [ -z "$$file" ] && continue; \
141 [ "$$symbol" = real_to_prot ] && break; \ 141 [ "$$symbol" = real_to_prot ] && break; \
142 done; \ 142 done; \
143 while \ 143 while \
144 oifs="$$IFS"; \ 144 oifs="$$IFS"; \
145 IFS='()'; \ 145 IFS='()'; \
146 set -- $$file; \ 146 set -- $$file; \
147 IFS="$$oifs"; \ 147 IFS="$$oifs"; \
148 [ -n "$$2" ] && echo "${I386DST}/$$2"; \ 148 [ -n "$$2" ] && echo "${I386DST}/$$2"; \
149 read file rest && [ -z "$$rest" ]; \ 149 read file rest && [ -z "$$rest" ]; \
150 do :; \ 150 do :; \
151 done; \ 151 done; \
152 ) )"; \ 152 ) )"; \
153 ${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,0 -T ${LDSCRIPT} \ 153 ${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,0 -T ${LDSCRIPT} \
154 -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} $$bb ${LIBLIST} 154 -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} $$bb ${LIBLIST}
155 ${OBJCOPY} -O binary ${PROG}.sym ${PROG} 155 ${OBJCOPY} -O binary ${PROG}.sym ${PROG}
156 156
157.include <bsd.prog.mk> 157.include <bsd.prog.mk>
158KLINK_MACHINE= i386 158KLINK_MACHINE= i386
159.include <bsd.klinks.mk> 159.include <bsd.klinks.mk>

cvs diff -r1.29 -r1.30 src/sys/arch/i386/stand/dosboot/Makefile (switch to unified diff)

--- src/sys/arch/i386/stand/dosboot/Makefile 2016/01/23 21:22:47 1.29
+++ src/sys/arch/i386/stand/dosboot/Makefile 2016/01/23 22:29:29 1.30
@@ -1,46 +1,46 @@ @@ -1,46 +1,46 @@
1# $NetBSD: Makefile,v 1.29 2016/01/23 21:22:47 christos Exp $ 1# $NetBSD: Makefile,v 1.30 2016/01/23 22:29:29 christos Exp $
2 2
3S= ${.CURDIR}/../../../.. 3S= ${.CURDIR}/../../../..
4 4
5BASE= dosboot 5BASE= dosboot
6PROG= ${BASE}.com 6PROG= ${BASE}.com
7NOMAN= # defined 7NOMAN= # defined
8NEWVERSWHAT= "DOS Boot" 8NEWVERSWHAT= "DOS Boot"
9STARTFILE= ${DOSSTART} 9STARTFILE= ${DOSSTART}
10RELOC= 0x100 10RELOC= 0x100
11 11
12SRCS= main.c devopen.c exec.c 12SRCS= main.c devopen.c exec.c
13 13
14CPPFLAGS+= -DSLOW # for libz 14CPPFLAGS+= -DSLOW # for libz
15CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 15CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
16CPPFLAGS+= -DXMS -D_KERNTYPES 16CPPFLAGS+= -DXMS
17CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 17CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
18#uncomment if there are problems with memory detection 18#uncomment if there are problems with memory detection
19#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 19#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
20 20
21#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 21#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
22CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 22CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
23 23
24# XXX should go into library 24# XXX should go into library
25SRCS+= getopt.c 25SRCS+= getopt.c
26.PATH: ${.CURDIR}/../libsa 26.PATH: ${.CURDIR}/../libsa
27 27
28# XXX these should depend on the size of the image 28# XXX these should depend on the size of the image
29CPPFLAGS+= -DSTACK_START=0x10000 29CPPFLAGS+= -DSTACK_START=0x10000
30SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 30SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
31SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes 31SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
32I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes 32I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
33 33
34VERSIONFILE= ${.CURDIR}/version 34VERSIONFILE= ${.CURDIR}/version
35 35
36PIE_CFLAGS= 36PIE_CFLAGS=
37PIE_LDFLAGS= 37PIE_LDFLAGS=
38PIE_AFLAGS= 38PIE_AFLAGS=
39 39
40.include <bsd.own.mk> 40.include <bsd.own.mk>
41 41
42release: check_RELEASEDIR 42release: check_RELEASEDIR
43 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 43 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
44 ${RELEASEDIR}/${MACHINE}/installation/misc 44 ${RELEASEDIR}/${MACHINE}/installation/misc
45 45
46.include "../Makefile.booters" 46.include "../Makefile.booters"

cvs diff -r1.23 -r1.24 src/sys/arch/i386/stand/pxeboot/Makefile (switch to unified diff)

--- src/sys/arch/i386/stand/pxeboot/Makefile 2016/01/23 21:22:47 1.23
+++ src/sys/arch/i386/stand/pxeboot/Makefile 2016/01/23 22:29:29 1.24
@@ -1,90 +1,90 @@ @@ -1,90 +1,90 @@
1# $NetBSD: Makefile,v 1.23 2016/01/23 21:22:47 christos Exp $ 1# $NetBSD: Makefile,v 1.24 2016/01/23 22:29:29 christos Exp $
2 2
3S= ${.CURDIR}/../../../.. 3S= ${.CURDIR}/../../../..
4 4
5BASE?= pxeboot_ia32 5BASE?= pxeboot_ia32
6PROG= ${BASE}.bin 6PROG= ${BASE}.bin
7NOMAN= # defined 7NOMAN= # defined
8NEWVERSWHAT= "PXE Boot" 8NEWVERSWHAT= "PXE Boot"
9STARTFILE= ${PXESTART} 9STARTFILE= ${PXESTART}
10RELOC= 0x0 10RELOC= 0x0
11 11
12.if (${BASE} != "pxeboot_ia32") 12.if (${BASE} != "pxeboot_ia32")
13.PATH.c: ${.CURDIR}/../pxeboot 13.PATH.c: ${.CURDIR}/../pxeboot
14.PATH.S: ${.CURDIR}/../pxeboot 14.PATH.S: ${.CURDIR}/../pxeboot
15.endif 15.endif
16 16
17SRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S 17SRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S
18# use our own nfs implementation 18# use our own nfs implementation
19.PATH: ${.CURDIR}/../libsa 19.PATH: ${.CURDIR}/../libsa
20SRCS+= nfs.c 20SRCS+= nfs.c
21 21
22PIE_CFLAGS= 22PIE_CFLAGS=
23PIE_AFLAGS= 23PIE_AFLAGS=
24PIE_LDFLAGS= 24PIE_LDFLAGS=
25 25
26.include <bsd.own.mk> 26.include <bsd.own.mk>
27 27
28.if ${MACHINE_ARCH} == "x86_64" 28.if ${MACHINE_ARCH} == "x86_64"
29LDFLAGS+= -Wl,-m,elf_i386 29LDFLAGS+= -Wl,-m,elf_i386
30AFLAGS+= -m32 30AFLAGS+= -m32
31LIBKERN_ARCH= i386 31LIBKERN_ARCH= i386
32KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386" 32KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386"
33.endif 33.endif
34 34
35CPPFLAGS+= -DSLOW # for libz 35CPPFLAGS+= -DSLOW # for libz
36 36
37.if (${BASE} == "pxeboot_ia32") 37.if (${BASE} == "pxeboot_ia32")
38# Take config values from patchable header 38# Take config values from patchable header
39CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev 39CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev
40CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed 40CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed
41CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr 41CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr
42CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap 42CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap
43CPPFLAGS+= -DDIRECT_SERIAL -D_KERNTYPES 43CPPFLAGS+= -DDIRECT_SERIAL
44# Various serial line configurations 44# Various serial line configurations
45#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 45#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
46# or 46# or
47#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 47#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD
48# or 48# or
49#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO  49#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO
50# and maybe  50# and maybe
51#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 51#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600
52.endif 52.endif
53 53
54.if (${BASE} == "pxeboot_ia32_com0") 54.if (${BASE} == "pxeboot_ia32_com0")
55CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 55CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL
56.endif 56.endif
57 57
58CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 58CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
59CPPFLAGS+= -DSUPPORT_TFTP 59CPPFLAGS+= -DSUPPORT_TFTP
60CPPFLAGS+= -DSUPPORT_NFS 60CPPFLAGS+= -DSUPPORT_NFS
61#CPPFLAGS+= -DNFS_NOSYMLINK 61#CPPFLAGS+= -DNFS_NOSYMLINK
62 62
63CPPFLAGS+= -DPASS_MEMMAP 63CPPFLAGS+= -DPASS_MEMMAP
64CPPFLAGS+= -DEPIA_HACK 64CPPFLAGS+= -DEPIA_HACK
65 65
66# modules and boot.cfg need special DHCP server setup, disable 66# modules and boot.cfg need special DHCP server setup, disable
67# per default for compatibility with existing setups 67# per default for compatibility with existing setups
68CPPFLAGS+= -DBOOTPARAM_DEFFLAGS=0x0c 68CPPFLAGS+= -DBOOTPARAM_DEFFLAGS=0x0c
69 69
70#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 70#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
71CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 71CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
72 72
73SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 73SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000
74SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 74SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels
75 75
76CPPFLAGS+= -DPASS_BIOSGEOM 76CPPFLAGS+= -DPASS_BIOSGEOM
77# if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no 77# if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no
78#I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 78#I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no
79 79
80.if (${BASE} == "pxeboot_ia32") 80.if (${BASE} == "pxeboot_ia32")
81VERSIONFILE= ${.CURDIR}/version 81VERSIONFILE= ${.CURDIR}/version
82.else 82.else
83VERSIONFILE= ${.CURDIR}/../pxeboot/version 83VERSIONFILE= ${.CURDIR}/../pxeboot/version
84.endif 84.endif
85 85
86.include "../Makefile.booters" 86.include "../Makefile.booters"
87 87
88release: check_RELEASEDIR 88release: check_RELEASEDIR
89 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \ 89 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
90 ${RELEASEDIR}/${MACHINE}/installation/misc 90 ${RELEASEDIR}/${MACHINE}/installation/misc