2002-02-09 12:35:59 +03:00
|
|
|
# $NetBSD: Makefile,v 1.7 2002/02/09 09:36:00 lukem Exp $
|
1997-02-04 06:51:37 +03:00
|
|
|
|
|
|
|
PROGAOUT= uboot
|
|
|
|
PROGSOURCE= uboot.c tgets.c
|
|
|
|
NEWVERSWHAT= "Primary Boot"
|
|
|
|
|
1999-12-14 23:55:27 +03:00
|
|
|
CPPFLAGS+= -DSUPPORT_ETHERNET -DSUPPORT_TAPE -DSUPPORT_DISK
|
|
|
|
|
2001-12-14 10:36:32 +03:00
|
|
|
.include "../Makefile.buildboot"
|
|
|
|
|
1997-02-04 06:51:37 +03:00
|
|
|
install:
|
2002-02-09 12:35:59 +03:00
|
|
|
${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
|
1997-02-04 06:51:37 +03:00
|
|
|
${DESTDIR}${BINDIR}/rbootd
|
2002-02-09 12:35:59 +03:00
|
|
|
${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2001-11-08 10:45:25 +03:00
|
|
|
uboot.lif ${DESTDIR}${BINDIR}/uboot.lif
|
1997-02-04 06:51:37 +03:00
|
|
|
rm -f ${DESTDIR}${BINDIR}/rdboot
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/rdboot
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/bootrd
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/bootrd
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/sdboot
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/sdboot
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/bootsd
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/bootsd
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/ctboot
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/ctboot
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/bootct
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/bootct
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/rbootd/SYS_UBOOT
|
|
|
|
ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/rbootd/SYS_UBOOT
|
|
|
|
|
2000-05-31 18:31:23 +04:00
|
|
|
.ifndef RELEASEDIR
|
|
|
|
release:
|
|
|
|
@echo setenv RELEASEDIR first
|
|
|
|
@false
|
|
|
|
.else
|
|
|
|
release: uboot.lif
|
2000-09-23 17:53:41 +04:00
|
|
|
mkdir -p ${RELEASEDIR}/installation/misc
|
|
|
|
rm -f ${RELEASEDIR}/installation/misc/SYS_UBOOT
|
|
|
|
${INSTALL} ${COPY} -m 444 uboot.lif \
|
|
|
|
${RELEASEDIR}/installation/misc/SYS_UBOOT
|
2000-05-31 18:31:23 +04:00
|
|
|
.endif # RELEASEDIR check
|