diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2002-02-23 04:35:28 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2002-02-23 04:35:28 +0000 |
| commit | 3c5ef798a0c12f5d27ef6e02a3d268c094c9991c (patch) | |
| tree | c95268bd6308d2843909d82c2c6209ad68425fcf /sys/boot | |
| parent | 23b93fc323d03e6f7d96c92f072823c74dd1519c (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/sparc64/loader/Makefile | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/sys/boot/sparc64/loader/Makefile b/sys/boot/sparc64/loader/Makefile index dec52e0ed62d9..64e686b52e48b 100644 --- a/sys/boot/sparc64/loader/Makefile +++ b/sys/boot/sparc64/loader/Makefile @@ -1,17 +1,31 @@ # $FreeBSD$ -LOADERBASE= 0x100000 - BASE= loader PROG= ${BASE} NEWVERSWHAT= "bootstrap loader" sparc64 -LOADER_DISK_SUPPORT?= yes -LOADER_NET_SUPPORT?= yes +CFLAGS= -mno-app-regs + +LOADER_DISK_SUPPORT?= no +LOADER_NET_SUPPORT?= yes +LOADER_NFS_SUPPORT?= yes +LOADER_TFTP_SUPPORT?= yes + +.if ${LOADER_DISK_SUPPORT} == "yes" +CFLAGS+= -DLOADER_DISK_SUPPORT +.endif +.if ${LOADER_NET_SUPPORT} == "yes" +CFLAGS+= -DLOADER_NET_SUPPORT +.endif +.if ${LOADER_NFS_SUPPORT} == "yes" +CFLAGS+= -DLOADER_NFS_SUPPORT +.endif +.if ${LOADER_TFTP_SUPPORT} == "yes" +CFLAGS+= -DLOADER_TFTP_SUPPORT +.endif # Architecture-specific loader code SRCS= locore.s main.c metadata.c -CFLAGS= -mno-app-regs # Always add MI sources .PATH: ${.CURDIR}/../../common @@ -21,8 +35,8 @@ CFLAGS+= -I${.CURDIR}/../../.. -I. CLEANFILES+= ${PROG} -CFLAGS+= -W -Wall -LDFLAGS= -X -Ttext ${LOADERBASE} -e _start -static +CFLAGS+= -W -Wall -ffreestanding +LDFLAGS= -X -static # where to get libstand from #XXX need a better way to do this @@ -37,8 +51,6 @@ LIBOFW= ${.CURDIR}/../../ofw/libofw/libofw.a CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ CFLAGS+= -I${.CURDIR}/../../ofw/libofw/ -CFLAGS+= -elf -DLOADERBASE=${LOADERBASE} - # Debug me! #CFLAGS+= -g #LDFLAGS+= -g |
