Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/stand/sbmips port this to build under evbmips.
details: https://anonhg.NetBSD.org/src/rev/9578fe0d6c08
branches: trunk
changeset: 355293:9578fe0d6c08
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jul 24 10:34:54 2017 +0000
description:
port this to build under evbmips.
diffstat:
sys/arch/evbmips/stand/sbmips/Makefile.bootprogs | 13 +++++++------
sys/arch/evbmips/stand/sbmips/Makefile.inc | 4 ++--
sys/arch/evbmips/stand/sbmips/common/blkdev.c | 6 +++---
sys/arch/evbmips/stand/sbmips/common/boot.c | 8 ++++----
sys/arch/evbmips/stand/sbmips/common/booted_dev.c | 6 +++---
sys/arch/evbmips/stand/sbmips/netboot/getsecs.c | 4 ++--
sys/arch/evbmips/stand/sbmips/netboot/if_cfe.c | 10 +++++-----
7 files changed, 26 insertions(+), 25 deletions(-)
diffs (168 lines):
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/Makefile.bootprogs
--- a/sys/arch/evbmips/stand/sbmips/Makefile.bootprogs Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/Makefile.bootprogs Mon Jul 24 10:34:54 2017 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: Makefile.bootprogs,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $
+# $NetBSD: Makefile.bootprogs,v 1.2 2017/07/24 10:34:54 mrg Exp $
.include <bsd.own.mk>
.include <bsd.klinks.mk>
-S= ${.CURDIR}/../../../..
+S= ${.CURDIR}/../../../../..
+COMMON= ${.CURDIR}/../common
-.PATH: ${.CURDIR}/../common
+.PATH: ${COMMON}
STRIPFLAG=
BINMODE= 444
@@ -19,7 +20,7 @@
STRIP?= strip
-CHECKSIZE_CMD= SIZE=${SIZE} ${HOST_SH} ${.CURDIR}/../common/checksize.sh
+CHECKSIZE_CMD= SIZE=${SIZE} ${HOST_SH} ${COMMON}/checksize.sh
AFLAGS+= -DASSEMBLER -D_LOCORE -mno-abicalls -mips64
# -I${.CURDIR}/../.. done by Makefile.inc
@@ -28,7 +29,7 @@
CFLAGS+= -mips64
CFLAGS+= -Werror ${CWARNFLAGS}
-NETBSD_VERS!=${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh
+NETBSD_VERS!=${HOST_SH} ${S}/conf/osrelease.sh
CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
CWARNFLAGS+= -Wno-main
@@ -45,7 +46,7 @@
REGION1_START= 0x20000000 # "Region 1 start"
REGION1_SIZE!= expr 256 \* 1024 # 256k
-LDSCRIPT= ${.CURDIR}/../common/boot.ldscript
+LDSCRIPT= ${COMMON}/boot.ldscript
# our memory lauout:
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/Makefile.inc
--- a/sys/arch/evbmips/stand/sbmips/Makefile.inc Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/Makefile.inc Mon Jul 24 10:34:54 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.2 2017/07/24 10:34:54 mrg Exp $
.include <bsd.own.mk>
@@ -7,5 +7,5 @@
MKMAN= no
-CPPFLAGS+= -I${.CURDIR}/../..
+CPPFLAGS+= -I${.CURDIR}/../../..
LDSTATIC?= -static
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/common/blkdev.c
--- a/sys/arch/evbmips/stand/sbmips/common/blkdev.c Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/common/blkdev.c Mon Jul 24 10:34:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: blkdev.c,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $ */
+/* $NetBSD: blkdev.c,v 1.2 2017/07/24 10:34:54 mrg Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -70,9 +70,9 @@
#include <sys/param.h>
#include <sys/disklabel.h>
-#include "stand/common/cfe_api.h"
+#include "stand/sbmips/common/cfe_api.h"
-#include "stand/common/common.h"
+#include "stand/sbmips/common/common.h"
#include "blkdev.h"
/*
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/common/boot.c
--- a/sys/arch/evbmips/stand/sbmips/common/boot.c Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/common/boot.c Mon Jul 24 10:34:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $ */
+/* $NetBSD: boot.c,v 1.2 2017/07/24 10:34:54 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -42,10 +42,10 @@
#include <sys/exec.h>
#include <sys/exec_ecoff.h>
-#include "stand/common/common.h"
-#include "stand/common/cfe_api.h"
+#include "stand/sbmips/common/common.h"
+#include "stand/sbmips/common/cfe_api.h"
-#include <machine/autoconf.h>
+#include <sbmips/autoconf.h>
#if !defined(UNIFIED_BOOTBLOCK) && !defined(SECONDARY_BOOTBLOCK)
#error not UNIFIED_BOOTBLOCK and not SECONDARY_BOOTBLOCK
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/common/booted_dev.c
--- a/sys/arch/evbmips/stand/sbmips/common/booted_dev.c Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/common/booted_dev.c Mon Jul 24 10:34:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: booted_dev.c,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $ */
+/* $NetBSD: booted_dev.c,v 1.2 2017/07/24 10:34:54 mrg Exp $ */
/*
* Copyright 2000, 2001
@@ -35,8 +35,8 @@
#include <lib/libsa/stand.h>
#include <lib/libkern/libkern.h>
-#include "stand/common/common.h"
-#include "stand/common/cfe_api.h"
+#include "stand/sbmips/common/common.h"
+#include "stand/sbmips/common/cfe_api.h"
int booted_dev_fd;
#if defined(PRIMARY_BOOTBLOCK) || defined(UNIFIED_BOOTBLOCK)
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/netboot/getsecs.c
--- a/sys/arch/evbmips/stand/sbmips/netboot/getsecs.c Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/netboot/getsecs.c Mon Jul 24 10:34:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getsecs.c,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $ */
+/* $NetBSD: getsecs.c,v 1.2 2017/07/24 10:34:55 mrg Exp $ */
/*
* Copyright 2001
@@ -42,7 +42,7 @@
#include <lib/libsa/stand.h>
#include <lib/libsa/net.h>
-#include "stand/common/cfe_api.h"
+#include "stand/sbmips/common/cfe_api.h"
satime_t
getsecs(void)
diff -r 3c454acd4044 -r 9578fe0d6c08 sys/arch/evbmips/stand/sbmips/netboot/if_cfe.c
--- a/sys/arch/evbmips/stand/sbmips/netboot/if_cfe.c Mon Jul 24 10:04:09 2017 +0000
+++ b/sys/arch/evbmips/stand/sbmips/netboot/if_cfe.c Mon Jul 24 10:34:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cfe.c,v 1.1.1.1 2017/07/24 08:56:29 mrg Exp $ */
+/* $NetBSD: if_cfe.c,v 1.2 2017/07/24 10:34:55 mrg Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
@@ -43,10 +43,10 @@
#include <lib/libsa/netif.h>
#include <lib/libkern/libkern.h>
-#include "stand/common/common.h"
-#include "stand/common/bbinfo.h"
-#include "stand/common/cfe_api.h"
-#include "stand/common/cfe_ioctl.h"
+#include "stand/sbmips/common/common.h"
+#include "stand/sbmips/common/bbinfo.h"
+#include "stand/sbmips/common/cfe_api.h"
+#include "stand/sbmips/common/cfe_ioctl.h"
int cfenet_probe(struct netif *, void *);
int cfenet_match(struct netif *, void *);
Home |
Main Index |
Thread Index |
Old Index