From 22ceab0fbb29241f72149fe4d53749d57861ba6f Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Sun, 12 Nov 2017 00:55:13 +0300 Subject: [PATCH] Fix little endian PPC64 architecture detection (#6713) --- tools/niminst/buildsh.tmpl | 2 ++ tools/niminst/makefile.tmpl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl index ec20566ac9b75..3e7d8ae6ec1cf 100644 --- a/tools/niminst/buildsh.tmpl +++ b/tools/niminst/buildsh.tmpl @@ -144,6 +144,8 @@ case $ucpu in mycpu="sparc64" fi ;; + *ppc64le* ) + mycpu="powerpc64el" ;; *ppc64* ) if [ "$myos" = "linux" ] ; then COMP_FLAGS="$COMP_FLAGS -m64" diff --git a/tools/niminst/makefile.tmpl b/tools/niminst/makefile.tmpl index 4a20680e005bb..bf4fd5cd0c89e 100644 --- a/tools/niminst/makefile.tmpl +++ b/tools/niminst/makefile.tmpl @@ -107,6 +107,9 @@ endif ifeq ($(ucpu),sun) mycpu = sparc endif +ifeq ($(ucpu),ppc64le) + mycpu = powerpc64el +endif ifeq ($(ucpu),ppc64) mycpu = powerpc64 ifeq ($(myos),linux)