pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/bootstrap



Module Name:    pkgsrc
Committed By:   sevan
Date:           Wed Feb  1 09:54:21 UTC 2017

Modified Files:
        pkgsrc/bootstrap: bootstrap

Log Message:
For POWER8 systems running Linux, set $machine_arch to powerpc64le if machine
hardware name is ppc64le.
Automatically default to 64bit ABI for powerpc64le systems.


To generate a diff of this commit:
cvs rdiff -u -r1.237 -r1.238 pkgsrc/bootstrap/bootstrap

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/bootstrap/bootstrap
diff -u pkgsrc/bootstrap/bootstrap:1.237 pkgsrc/bootstrap/bootstrap:1.238
--- pkgsrc/bootstrap/bootstrap:1.237    Tue Jan 10 12:30:00 2017
+++ pkgsrc/bootstrap/bootstrap  Wed Feb  1 09:54:21 2017
@@ -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 @@ 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=powerpc6
 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