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