diff mbox series

[v2,03/16] external/trace: Fix endianness detection in Makefile

Message ID 20190401234327.26819-4-jniethe5@gmail.com
State Accepted
Headers show
Series Improvements to trace buffers | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (050d8165ab05b6d9cdf4bfee42d9776969c77029)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Jordan Niethe April 1, 2019, 11:43 p.m. UTC
The Makefile for the dump_trace tool does not correctly determine
endianness on Power. Instead Big Endian is always used on Power. Fix so
Little Endian will be detected.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
---
 external/trace/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/external/trace/Makefile b/external/trace/Makefile
index 3b6684bf1f4d..3828fea534ea 100644
--- a/external/trace/Makefile
+++ b/external/trace/Makefile
@@ -1,4 +1,4 @@ 
-HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc.*/BIG/')
+HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc64le/LITTLE/' -e 's/^ppc.*/BIG/')
 CFLAGS=-g -Wall -DHAVE_$(HOSTEND)_ENDIAN -I../../include -I../../
 
 dump_trace: dump_trace.c