1 1.6.2.5 christos # $NetBSD: Makefile,v 1.6.2.5 2005/12/11 10:28:19 christos Exp $ 2 1.1 thorpej 3 1.1 thorpej S= ${.CURDIR}/../../../../ 4 1.1 thorpej 5 1.3 thorpej BASE?= pxeboot_ia32 6 1.2 thorpej PROG= ${BASE}.bin 7 1.4 lukem NOMAN= # defined 8 1.1 thorpej NEWVERSWHAT= "PXE Boot" 9 1.2 thorpej STARTFILE= ${PXESTART} 10 1.2 thorpej RELOC= 0x0 11 1.1 thorpej 12 1.3 thorpej .if (${BASE} != "pxeboot_ia32") 13 1.3 thorpej .PATH.c: ${.CURDIR}/../pxeboot 14 1.3 thorpej .PATH.S: ${.CURDIR}/../pxeboot 15 1.3 thorpej .endif 16 1.1 thorpej 17 1.1 thorpej SRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S 18 1.5 drochner # use our own nfs implementation 19 1.5 drochner .PATH: ${.CURDIR}/../libsa 20 1.5 drochner SRCS+= nfs.c 21 1.6 mycroft 22 1.6.2.4 skrll .if ${MACHINE} == "amd64" 23 1.6.2.4 skrll LD+= -m elf_i386 24 1.6.2.4 skrll AFLAGS+= -m32 25 1.6.2.4 skrll CPUFLAGS= -m32 26 1.6.2.4 skrll LIBKERN_ARCH=i386 27 1.6.2.4 skrll KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386" 28 1.6.2.4 skrll CPPFLAGS+= -DBOOT_ELF64 29 1.6.2.4 skrll .else 30 1.6.2.4 skrll CPUFLAGS= -mcpu=i386 31 1.6.2.4 skrll .endif 32 1.6.2.4 skrll 33 1.6 mycroft CPPFLAGS+= -DSLOW # for libz 34 1.1 thorpej 35 1.3 thorpej .if (${BASE} == "pxeboot_ia32") 36 1.6.2.5 christos # Take config values from patchable header 37 1.6.2.5 christos CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev 38 1.6.2.5 christos CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed 39 1.6.2.5 christos CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr 40 1.6.2.5 christos CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap 41 1.6.2.5 christos CPPFLAGS+= -DDIRECT_SERIAL 42 1.1 thorpej # Various serial line configurations 43 1.6.2.5 christos #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 44 1.1 thorpej # or 45 1.1 thorpej #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 46 1.1 thorpej # or 47 1.1 thorpej #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 48 1.1 thorpej # and maybe 49 1.1 thorpej #CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 50 1.3 thorpej .endif 51 1.3 thorpej 52 1.3 thorpej .if (${BASE} == "pxeboot_ia32_com0") 53 1.3 thorpej CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 54 1.3 thorpej .endif 55 1.1 thorpej 56 1.1 thorpej CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 57 1.1 thorpej CPPFLAGS+= -DSUPPORT_TFTP 58 1.1 thorpej CPPFLAGS+= -DSUPPORT_NFS 59 1.5 drochner #CPPFLAGS+= -DNFS_NOSYMLINK 60 1.1 thorpej 61 1.1 thorpej CPPFLAGS+= -DPASS_MEMMAP 62 1.1 thorpej 63 1.1 thorpej #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 64 1.1 thorpej CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 65 1.1 thorpej 66 1.1 thorpej SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 67 1.2 thorpej SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 68 1.1 thorpej 69 1.6.2.1 skrll CPPFLAGS+= -DPASS_BIOSGEOM 70 1.6.2.1 skrll # if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no 71 1.6.2.1 skrll #I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 72 1.1 thorpej 73 1.3 thorpej .if (${BASE} == "pxeboot_ia32") 74 1.1 thorpej VERSIONFILE= ${.CURDIR}/version 75 1.3 thorpej .else 76 1.3 thorpej VERSIONFILE= ${.CURDIR}/../pxeboot/version 77 1.3 thorpej .endif 78 1.1 thorpej 79 1.1 thorpej .include "../Makefile.booters" 80