Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add more links for evbmips



details:   https://anonhg.NetBSD.org/src/rev/bfceabe2428a
branches:  trunk
changeset: 767193:bfceabe2428a
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jul 10 23:50:24 2011 +0000

description:
Add more links for evbmips
Add ${MACHINE} link

diffstat:

 share/mk/bsd.klinks.mk |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r b2c7050e4f49 -r bfceabe2428a share/mk/bsd.klinks.mk
--- a/share/mk/bsd.klinks.mk    Sun Jul 10 23:49:31 2011 +0000
+++ b/share/mk/bsd.klinks.mk    Sun Jul 10 23:50:24 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.klinks.mk,v 1.8 2011/02/20 04:05:14 jmcneill Exp $
+#      $NetBSD: bsd.klinks.mk,v 1.9 2011/07/10 23:50:24 matt Exp $
 #
 
 .include <bsd.own.mk>
@@ -14,7 +14,7 @@
 .endif
 .endif
 
-CLEANFILES+=   machine ${MACHINE_CPU}
+CLEANFILES+=   machine ${MACHINE_CPU} ${MACHINE}
 .if ${MACHINE} == "sun2" || ${MACHINE} == "sun3"
 CLEANFILES+=   sun68k
 .elif ${MACHINE} == "sparc64"
@@ -23,6 +23,8 @@
 CLEANFILES+=   x86
 .elif ${MACHINE} == "amd64"
 CLEANFILES+=   x86 i386
+.elif ${MACHINE} == "evbmips"
+CLEANFILES+=   algor sbmips
 .endif
 
 .if defined(XEN_BUILD) || ${MACHINE} == "xen"
@@ -39,6 +41,8 @@
 .BEGIN:
        @rm -f machine && \
            ln -s $S/arch/${MACHINE}/include machine
+       @rm -f ${MACHINE} && \
+           ln -s $S/arch/${MACHINE}/include ${MACHINE}
        @if [ -d $S/arch/${MACHINE_CPU} ]; then \
            rm -f ${MACHINE_CPU} && \
            ln -s $S/arch/${MACHINE_CPU}/include ${MACHINE_CPU}; \
@@ -68,4 +72,10 @@
        @rm -rf xen-ma && mkdir xen-ma && \
            ln -s ../${XEN_BUILD:U${MACHINE_ARCH}} xen-ma/machine
 .endif
+.if ${MACHINE} == "evbmips"
+       @rm -f algor && \
+           ln -s $S/arch/algor/include algor
+       @rm -f sbmips && \
+           ln -s $S/arch/sbmips/include sbmips
 .endif
+.endif



Home | Main Index | Thread Index | Old Index