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