|
@@ -55,13 +55,15 @@ ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
|
|
|
-e s/s390x/s390/ -e s/parisc64/parisc/ \
|
|
|
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
|
|
|
-e s/sh[234].*/sh/ )
|
|
|
+NO_PERF_REGS := 1
|
|
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
|
|
AR = $(CROSS_COMPILE)ar
|
|
|
|
|
|
# Additional ARCH settings for x86
|
|
|
ifeq ($(ARCH),i386)
|
|
|
- ARCH := x86
|
|
|
+ ARCH := x86
|
|
|
+ NO_PERF_REGS := 0
|
|
|
endif
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
ARCH := x86
|
|
@@ -74,6 +76,7 @@ ifeq ($(ARCH),x86_64)
|
|
|
ARCH_CFLAGS := -DARCH_X86_64
|
|
|
ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
|
|
|
endif
|
|
|
+ NO_PERF_REGS := 0
|
|
|
endif
|
|
|
|
|
|
# Treat warnings as errors unless directed not to
|
|
@@ -326,6 +329,7 @@ LIB_H += $(TRACE_EVENT_DIR)event-parse.h
|
|
|
LIB_H += util/target.h
|
|
|
LIB_H += util/rblist.h
|
|
|
LIB_H += util/intlist.h
|
|
|
+LIB_H += util/perf_regs.h
|
|
|
|
|
|
LIB_OBJS += $(OUTPUT)util/abspath.o
|
|
|
LIB_OBJS += $(OUTPUT)util/alias.o
|
|
@@ -704,6 +708,13 @@ else
|
|
|
endif
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(NO_PERF_REGS),0)
|
|
|
+ ifeq ($(ARCH),x86)
|
|
|
+ LIB_H += arch/x86/include/perf_regs.h
|
|
|
+ endif
|
|
|
+else
|
|
|
+ BASIC_CFLAGS += -DNO_PERF_REGS
|
|
|
+endif
|
|
|
|
|
|
ifdef NO_STRLCPY
|
|
|
BASIC_CFLAGS += -DNO_STRLCPY
|