* Add support for MACHINEs: evbmips-eb evbmips-el sbmips-eb sbmips-el
which sets the appropriate MACHINE_ARCH and rewrites MACHINE to lose the -e[bl] suffix. * Don't default to a MACHINE_ARCH for evbmips or sbmips. Per discussion wth Simon Burge.
This commit is contained in:
parent
f0e810d923
commit
8bced05906
21
build.sh
21
build.sh
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env sh
|
||||
# $NetBSD: build.sh,v 1.100 2003/05/10 07:12:37 lukem Exp $
|
||||
# $NetBSD: build.sh,v 1.101 2003/05/12 02:33:17 lukem Exp $
|
||||
#
|
||||
# Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -160,15 +160,22 @@ getarch()
|
|||
MACHINE_ARCH=m68k
|
||||
;;
|
||||
|
||||
mipsco|newsmips|sbmips|sgimips)
|
||||
evbmips-e[bl]|sbmips-e[bl])
|
||||
MACHINE_ARCH=mips${MACHINE##*-}
|
||||
MACHINE=${MACHINE%-e[bl]}
|
||||
;;
|
||||
|
||||
evbmips|sbmips) # no default MACHINE_ARCH
|
||||
;;
|
||||
|
||||
mipsco|newsmips|sgimips)
|
||||
MACHINE_ARCH=mipseb
|
||||
;;
|
||||
|
||||
algor|arc|cobalt|evbmips|hpcmips|playstation2|pmax)
|
||||
algor|arc|cobalt|hpcmips|playstation2|pmax)
|
||||
MACHINE_ARCH=mipsel
|
||||
;;
|
||||
|
||||
|
||||
pc532)
|
||||
MACHINE_ARCH=ns32k
|
||||
;;
|
||||
|
@ -212,6 +219,10 @@ validatearch()
|
|||
alpha|arm|armeb|hppa|i386|m68000|m68k|mipse[bl]|ns32k|powerpc|sh[35]e[bl]|sparc|sparc64|vax|x86_64)
|
||||
;;
|
||||
|
||||
"")
|
||||
bomb "No MACHINE_ARCH provided"
|
||||
;;
|
||||
|
||||
*)
|
||||
bomb "Unknown target MACHINE_ARCH: ${MACHINE_ARCH}"
|
||||
;;
|
||||
|
@ -761,7 +772,7 @@ createmakewrapper()
|
|||
eval cat <<EOF ${makewrapout}
|
||||
#! /bin/sh
|
||||
# Set proper variables to allow easy "make" building of a NetBSD subtree.
|
||||
# Generated from: \$NetBSD: build.sh,v 1.100 2003/05/10 07:12:37 lukem Exp $
|
||||
# Generated from: \$NetBSD: build.sh,v 1.101 2003/05/12 02:33:17 lukem Exp $
|
||||
#
|
||||
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue