1# $NetBSD: Makefile.bootxx,v 1.2 2009/04/03 10:38:14 tsutsui Exp $ 2 3SRCS = start.S bootxx.c booted_dev.c blkdev.c cfe.c cfe_api.c \ 4 putstr.c panic_putstr.c 5 6BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS} 7 8CPPFLAGS += ${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" \ 13 -DLIBSA_NO_TWIDDLE \ 14 -DLIBSA_NO_FD_CHECKING \ 15 -DLIBSA_NO_RAW_ACCESS \ 16 -DLIBSA_NO_DISKLABEL_MSGS 17 18CLEANFILES+= ${PROG}.sym 19 20${PROG}: ${PROG}.sym 21 @echo creating ${PROG} from ${PROG}.sym... 22 @${OBJCOPY} --output-target=binary -R .reginfo ${PROG}.sym ${PROG} 23 @chmod 644 ${PROG} 24 @ls -l ${PROG} 25 @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \ 26 ${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false) 27 28SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no 29.include "../Makefile.bootprogs" 30 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 35 @${SIZE} ${PROG}.sym 36