1 # $NetBSD: Makefile.bootxx,v 1.1 2002/11/09 06:20:37 cgd Exp $
3 SRCS = start.S bootxx.c booted_dev.c blkdev.c cfe.c cfe_api.c \
4 putstr.c panic_putstr.c
6 BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
8 CPPFLAGS += ${PRIMARY_CPPFLAGS} \
9 -DLIBSA_FS_SINGLECOMPONENT -DLIBSA_NO_FS_WRITE \
10 -DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SEEK \
11 -DLIBSA_SINGLE_DEVICE=blkdev \
12 -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" \
14 -DLIBSA_NO_FD_CHECKING \
15 -DLIBSA_NO_RAW_ACCESS \
16 -DLIBSA_NO_DISKLABEL_MSGS
18 CLEANFILES+= ${PROG}.sym
21 @echo creating ${PROG} from ${PROG}.sym...
22 @${OBJCOPY} --output-target=binary -R .reginfo ${PROG}.sym ${PROG}
25 @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
26 ${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)
28 SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
29 .include "../Makefile.bootprogs"
31 ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBKERN}
32 ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
33 ${OBJS} ${LIBSA} ${LIBKERN}
34 @chmod 644 ${PROG}.sym