2001-09-22 07:34:17 +04:00
|
|
|
# $NetBSD: Makefile.bootxx,v 1.4 2001/09/22 03:34:17 tv Exp $
|
1999-04-02 07:34:09 +04:00
|
|
|
|
|
|
|
SRCS = start.S bootxx.c booted_dev.c blkdev.c prom.c prom_disp.S \
|
|
|
|
putstr.c panic_putstr.c
|
|
|
|
|
1999-08-19 00:00:27 +04:00
|
|
|
# XXX sometimes useful for debugging
|
|
|
|
# SRCS += putulong.c
|
|
|
|
|
1999-04-02 07:34:09 +04:00
|
|
|
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
|
|
|
|
|
|
|
|
CPPFLAGS += ${PRIMARY_CPPFLAGS} \
|
|
|
|
-DLIBSA_FS_SINGLECOMPONENT -DLIBSA_NO_FS_WRITE \
|
|
|
|
-DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SEEK \
|
|
|
|
-DLIBSA_SINGLE_DEVICE=blkdev \
|
|
|
|
-D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" \
|
|
|
|
-DLIBSA_NO_TWIDDLE \
|
|
|
|
-DLIBSA_NO_FD_CHECKING \
|
|
|
|
-DLIBSA_NO_RAW_ACCESS \
|
|
|
|
-DLIBSA_NO_DISKLABEL_MSGS \
|
|
|
|
-DLIBSA_USE_MEMCPY
|
|
|
|
|
|
|
|
CLEANFILES+= ${PROG}.sym
|
|
|
|
|
|
|
|
${PROG}: ${PROG}.sym
|
|
|
|
@echo creating ${PROG} from ${PROG}.sym...
|
2001-09-22 07:34:17 +04:00
|
|
|
@${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
|
1999-04-02 07:34:09 +04:00
|
|
|
@chmod 644 ${PROG}
|
|
|
|
@ls -l ${PROG}
|
|
|
|
@${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${PRIMARY_MAX_LOAD} \
|
|
|
|
${PRIMARY_MAX_TOTAL} || (rm -f ${PROG} ; false)
|
|
|
|
|
|
|
|
SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
|
|
|
|
.include "../Makefile.bootprogs"
|
|
|
|
|
|
|
|
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBKERN}
|
|
|
|
${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
|
|
|
|
${OBJS} ${LIBSA} ${LIBKERN}
|
|
|
|
@chmod 644 ${PROG}.sym
|
|
|
|
@${SIZE} ${PROG}.sym
|