Source-Changes-HG archive

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

[src/trunk]: src/share/mk declare MACHINE_CPU. MACHINE_CPU will be generated...



details:   https://anonhg.NetBSD.org/src/rev/380060604e76
branches:  trunk
changeset: 501832:380060604e76
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jan 08 07:28:07 2001 +0000

description:
declare MACHINE_CPU.  MACHINE_CPU will be generated from MACHINE_ARCH,
to identifiy CPU type in build tree (like mipse[lb] -> mips, sh3e[lb] -> sh3).

XXX what should we do about arm and sparc?

diffstat:

 share/mk/bsd.own.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7428285d9c08 -r 380060604e76 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Mon Jan 08 07:18:54 2001 +0000
+++ b/share/mk/bsd.own.mk       Mon Jan 08 07:28:07 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.152 2001/01/05 00:25:59 itojun Exp $
+#      $NetBSD: bsd.own.mk,v 1.153 2001/01/08 07:28:07 itojun Exp $
 
 .if !defined(_BSD_OWN_MK_)
 _BSD_OWN_MK_=1
@@ -132,6 +132,10 @@
 GNU_ARCH.sparc=sparc
 GNU_ARCH.sparc64=sparc
 GNU_ARCH.vax=vax
+
+# CPU model, derived from MACHINE_ARCH
+MACHINE_CPU=   ${MACHINE_ARCH:C/mipse[bl]/mips/:S/arm26/arm/:C/sh3e[bl]/sh3/}
+
 .if ${MACHINE_ARCH} == "mips"
 .BEGIN:
        @echo Must set MACHINE_ARCH to one of mipseb or mipsel



Home | Main Index | Thread Index | Old Index