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