pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/bootstrap For POWER8 systems running Linux, set $machi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c5ab77b3608
branches: trunk
changeset: 357915:6c5ab77b3608
user: sevan <sevan%pkgsrc.org@localhost>
date: Wed Feb 01 09:54:21 2017 +0000
description:
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:
bootstrap/bootstrap | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 5e1c3799e171 -r 6c5ab77b3608 bootstrap/bootstrap
--- a/bootstrap/bootstrap Wed Feb 01 09:35:05 2017 +0000
+++ b/bootstrap/bootstrap Wed Feb 01 09:54:21 2017 +0000
@@ -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@localhost>
# All rights reserved.
@@ -714,7 +714,14 @@
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/*) 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 ;;
Home |
Main Index |
Thread Index |
Old Index