From 5ef7bbb09f7b91ef06524c72e1ab1fc48e0d6682 Mon Sep 17 00:00:00 2001 From: Aaro Koskinen Date: Wed, 1 Jul 2015 14:54:43 +0300 Subject: perf tools: Allow to specify custom linker command Allow to specify custom linker command. This fixes MIPS64 builds for 64-bit userspace as it will allow to pass a linker using the correct linker flags for 64-bit ABI (by default GNU binutils ld will assume N32). Signed-off-by: Aaro Koskinen Acked-by: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1435751683-18500-2-git-send-email-aaro.koskinen@nokia.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 0e0938afbbb1..7a4b549214e3 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -110,7 +110,7 @@ $(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD $(Q)touch $(OUTPUT)PERF-VERSION-FILE CC = $(CROSS_COMPILE)gcc -LD = $(CROSS_COMPILE)ld +LD ?= $(CROSS_COMPILE)ld AR = $(CROSS_COMPILE)ar PKG_CONFIG = $(CROSS_COMPILE)pkg-config -- cgit v1.2.3 RGB24"; const char *width = NULL; const char *height = NULL; while (*attr) { if (strcmp (*attr, "format") == 0) { format = *++attr; } else if (strcmp (*attr, "width") == 0) { width = *++attr; } else if (strcmp (*attr, "height") == 0) { height = *++attr; } else { fprintf (stderr, "unknown image attribute '%s'\n", *attr); attr++; } attr++; } fprintf (trace->stream, "<< /format //%s /width %s /height %s /mime-type (image/png) /source <{", format, width, height); assert (trace->tail == NULL); trace->tail = "}> >> image pattern\n"; } else if (strcmp (element, "solid") == 0) { trace->tail = " rgba\n"; } else if (strcmp (element, "linear") == 0) { const char *x1 = NULL; const char *x2 = NULL; const char *y1 = NULL; const char *y2 = NULL; while (*attr) { if (strcmp (*attr, "x1") == 0) { x1 = *++attr; } else if (strcmp (*attr, "x2") == 0) { x2 = *++attr; } else if (strcmp (*attr, "y1") == 0) { y1 = *++attr; } else if (strcmp (*attr, "y2") == 0) { y2 = *++attr; } else { fprintf (stderr, "unknown linear attribute '%s'\n", *attr); attr++; } attr++; } fprintf (trace->stream, "%s %s %s %s linear\n", x1, y1, x2, y2); } else if (strcmp (element, "radial") == 0) { const char *x1 = NULL; const char *y1 = NULL; const char *r1 = NULL; const char *y2 = NULL; const char *x2 = NULL; const char *r2 = NULL; while (*attr) { if (strcmp (*attr, "x1") == 0) { x1 = *++attr; } else if (strcmp (*attr, "y1") == 0) { y1 = *++attr; } else if (strcmp (*attr, "r1") == 0) { r1 = *++attr; } else if (strcmp (*attr, "x2") == 0) { x2 = *++attr; } else if (strcmp (*attr, "y2") == 0) { y2 = *++attr; } else if (strcmp (*attr, "r2") == 0) { r2 = *++attr; } else { fprintf (stderr, "unknown radial attribute '%s'\n", *attr); attr++; } attr++; } fprintf (trace->stream, "%s %s %s %s %s %s radial\n", x1, y1, r1, x2, y2, r2); } else if (strcmp (element, "matrix") == 0) { fprintf (trace->stream, "[ "); trace->tail = " ] set-matrix\n"; } else if (strcmp (element, "extend") == 0) { trace->tail = " set-extend\n"; } else if (strcmp (element, "filter") == 0) { trace->tail = " set-filter\n"; } else if (strcmp (element, "operator") == 0) { trace->tail = " set-operator\n"; } else if (strcmp (element, "tolerance") == 0) { trace->tail = " set-tolerance\n"; } else if (strcm