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.
This commit is contained in:
matt 2014-08-29 07:29:07 +00:00
parent 38582b4fe4
commit bf4c8a3ff7
2 changed files with 6 additions and 4 deletions

View File

@ -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 @@ EXTRA_LINKFLAGS+= --be8
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

View File

@ -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 @@ initarm(void *arg)
#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];