Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm Instead of printing cubie, use the BOARDTYPE...



details:   https://anonhg.NetBSD.org/src/rev/bed7fb17c006
branches:  trunk
changeset: 331888:bed7fb17c006
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Aug 29 07:29:07 2014 +0000

description:
Instead of printing cubie, use the BOARDTYPE instead.  This allows other
boards to use the cubie code but see a more useful BOARDTYPE.  We could
also use it to enable more apporpriate configuration for the board.

diffstat:

 sys/arch/evbarm/conf/mk.cubie         |  4 +++-
 sys/arch/evbarm/cubie/cubie_machdep.c |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 3f7b4560f0d8 -r bed7fb17c006 sys/arch/evbarm/conf/mk.cubie
--- a/sys/arch/evbarm/conf/mk.cubie     Fri Aug 29 04:58:40 2014 +0000
+++ b/sys/arch/evbarm/conf/mk.cubie     Fri Aug 29 07:29:07 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mk.cubie,v 1.3 2014/01/30 00:07:35 matt Exp $
+#      $NetBSD: mk.cubie,v 1.4 2014/08/29 07:29:07 matt Exp $
 CPPFLAGS+= -mcpu=cortex-a8 -mfpu=neon
 
 .if !empty(MACHINE_ARCH:M*eb)
@@ -8,6 +8,8 @@
 SYSTEM_FIRST_OBJ=      cubie_start.o
 SYSTEM_FIRST_SFILE=    ${THISARM}/cubie/cubie_start.S
 
+COPTS.cubie_machdep.c+=        -DBOARDTYPE=${BOARDTYPE}
+
 GENASSYM_EXTRAS+=      ${THISARM}/cubie/genassym.cf
 
 _OSRELEASE!=           ${HOST_SH} $S/conf/osrelease.sh
diff -r 3f7b4560f0d8 -r bed7fb17c006 sys/arch/evbarm/cubie/cubie_machdep.c
--- a/sys/arch/evbarm/cubie/cubie_machdep.c     Fri Aug 29 04:58:40 2014 +0000
+++ b/sys/arch/evbarm/cubie/cubie_machdep.c     Fri Aug 29 07:29:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cubie_machdep.c,v 1.20 2014/08/28 06:36:48 skrll Exp $ */
+/*     $NetBSD: cubie_machdep.c,v 1.21 2014/08/29 07:29:07 matt Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cubie_machdep.c,v 1.20 2014/08/28 06:36:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cubie_machdep.c,v 1.21 2014/08/29 07:29:07 matt Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -329,7 +329,7 @@
 
 #ifdef VERBOSE_INIT_ARM
        /* Talk to the user */
-       printf("\nNetBSD/evbarm (cubie) booting ...\n");
+       printf("\nNetBSD/evbarm (" __STRING(BOARDTYPE) ") booting ...\n");
 #endif
 
        const uint8_t *uboot_bootinfo = (void*)uboot_args[0];



Home | Main Index | Thread Index | Old Index