diff options
author | sevan <sevan@pkgsrc.org> | 2017-02-01 09:54:21 +0000 |
---|---|---|
committer | sevan <sevan@pkgsrc.org> | 2017-02-01 09:54:21 +0000 |
commit | 532b04c47a6af47b10193bc032f5f3f658b0b8c6 (patch) | |
tree | 32c559230e9a850b8a50570b0f165b23c27a9dd6 /bootstrap | |
parent | 2bf94dd5e7a5edeee10439ff56220569a1281f4b (diff) | |
download | pkgsrc-532b04c47a6af47b10193bc032f5f3f658b0b8c6.tar.gz |
For POWER8 systems running Linux, set $machine_arch to powerpc64le if machine
hardware name is ppc64le.
Automatically default to 64bit ABI for powerpc64le systems.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index f89f0dc8431..2cd6055ab06 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.237 2017/01/10 12:30:00 jperkin Exp $ +# $NetBSD: bootstrap,v 1.238 2017/02/01 09:54:21 sevan Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -714,7 +714,14 @@ Linux) fi need_sed=no set_opsys=no - machine_arch=`uname -m | sed -e 's/i.86/i386/'` + case `uname -m` in + ppc64le) + machine_arch=powerpc64le + ;; + *) + machine_arch=`uname -m | sed -e 's/i.86/i386/'` + ;; + esac ;; Minix) root_group=operator @@ -866,6 +873,7 @@ powerpc/64) abi=64 machine_arch=powerpc64 ;; powerpc/*) abi=32 machine_arch=powerpc ;; powerpc64/32) abi=32 machine_arch=powerpc ;; powerpc64/*) abi=64 machine_arch=powerpc64 ;; +powerpc64le/*) abi=64 machine_arch=powerpc64le;; # "sparc" can support 64-bit, e.g. SunOS, defaults to 32-bit. sparc/64) abi=64 machine_arch=sparc64 ;; sparc/*) abi=32 machine_arch=sparc ;; |