1 1.18 drochner # $NetBSD: Makefile,v 1.18 2010/01/14 17:49:31 drochner Exp $ 2 1.1 thorpej 3 1.17 tsutsui 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.15 christos PIE_CFLAGS= 23 1.15 christos PIE_AFLAGS= 24 1.15 christos PIE_LDFLAGS= 25 1.15 christos 26 1.10 mrg .include <bsd.own.mk> 27 1.10 mrg 28 1.16 abs .if ${MACHINE_ARCH} == "x86_64" 29 1.11 lukem LDFLAGS+= -Wl,-m,elf_i386 30 1.11 lukem AFLAGS+= -m32 31 1.11 lukem LIBKERN_ARCH= i386 32 1.8 chs KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386" 33 1.8 chs .endif 34 1.8 chs 35 1.6 mycroft CPPFLAGS+= -DSLOW # for libz 36 1.1 thorpej 37 1.3 thorpej .if (${BASE} == "pxeboot_ia32") 38 1.9 dsl # Take config values from patchable header 39 1.9 dsl CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev 40 1.9 dsl CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed 41 1.9 dsl CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr 42 1.9 dsl CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap 43 1.9 dsl CPPFLAGS+= -DDIRECT_SERIAL 44 1.1 thorpej # Various serial line configurations 45 1.9 dsl #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 46 1.1 thorpej # or 47 1.1 thorpej #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 48 1.1 thorpej # or 49 1.1 thorpej #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 50 1.1 thorpej # and maybe 51 1.1 thorpej #CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 52 1.3 thorpej .endif 53 1.3 thorpej 54 1.3 thorpej .if (${BASE} == "pxeboot_ia32_com0") 55 1.3 thorpej CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 56 1.3 thorpej .endif 57 1.1 thorpej 58 1.1 thorpej CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 59 1.1 thorpej CPPFLAGS+= -DSUPPORT_TFTP 60 1.1 thorpej CPPFLAGS+= -DSUPPORT_NFS 61 1.5 drochner #CPPFLAGS+= -DNFS_NOSYMLINK 62 1.1 thorpej 63 1.1 thorpej CPPFLAGS+= -DPASS_MEMMAP 64 1.13 salo CPPFLAGS+= -DEPIA_HACK 65 1.1 thorpej 66 1.18 drochner # modules and boot.cfg need special DHCP server setup, disable 67 1.18 drochner # per default for compatibility with existing setups 68 1.18 drochner CPPFLAGS+= -DBOOTPARAM_DEFFLAGS=0 69 1.18 drochner 70 1.1 thorpej #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 71 1.1 thorpej CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 72 1.1 thorpej 73 1.1 thorpej SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 74 1.2 thorpej SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 75 1.1 thorpej 76 1.7 dbj CPPFLAGS+= -DPASS_BIOSGEOM 77 1.7 dbj # if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no 78 1.7 dbj #I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 79 1.1 thorpej 80 1.3 thorpej .if (${BASE} == "pxeboot_ia32") 81 1.1 thorpej VERSIONFILE= ${.CURDIR}/version 82 1.3 thorpej .else 83 1.3 thorpej VERSIONFILE= ${.CURDIR}/../pxeboot/version 84 1.3 thorpej .endif 85 1.1 thorpej 86 1.1 thorpej .include "../Makefile.booters" 87 1.14 he 88 1.14 he release: check_RELEASEDIR 89 1.14 he ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \ 90 1.14 he ${RELEASEDIR}/${MACHINE}/installation/misc 91