|
@@ -22,6 +22,7 @@ include $(srctree)/tools/scripts/Makefile.arch
|
|
$(call detected_var,SRCARCH)
|
|
$(call detected_var,SRCARCH)
|
|
|
|
|
|
NO_PERF_REGS := 1
|
|
NO_PERF_REGS := 1
|
|
|
|
+NO_SYSCALL_TABLE := 1
|
|
|
|
|
|
# Additional ARCH settings for ppc
|
|
# Additional ARCH settings for ppc
|
|
ifeq ($(SRCARCH),powerpc)
|
|
ifeq ($(SRCARCH),powerpc)
|
|
@@ -33,7 +34,8 @@ endif
|
|
ifeq ($(SRCARCH),x86)
|
|
ifeq ($(SRCARCH),x86)
|
|
$(call detected,CONFIG_X86)
|
|
$(call detected,CONFIG_X86)
|
|
ifeq (${IS_64_BIT}, 1)
|
|
ifeq (${IS_64_BIT}, 1)
|
|
- CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT -DHAVE_SYSCALL_TABLE -I$(OUTPUT)arch/x86/include/generated
|
|
|
|
|
|
+ NO_SYSCALL_TABLE := 0
|
|
|
|
+ CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT -I$(OUTPUT)arch/x86/include/generated
|
|
ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
|
|
ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
|
|
LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
|
|
LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
|
|
$(call detected,CONFIG_X86_64)
|
|
$(call detected,CONFIG_X86_64)
|
|
@@ -56,12 +58,18 @@ endif
|
|
|
|
|
|
ifeq ($(ARCH),s390)
|
|
ifeq ($(ARCH),s390)
|
|
NO_PERF_REGS := 0
|
|
NO_PERF_REGS := 0
|
|
|
|
+ NO_SYSCALL_TABLE := 0
|
|
|
|
+ CFLAGS += -I$(OUTPUT)arch/s390/include/generated
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(NO_PERF_REGS),0)
|
|
ifeq ($(NO_PERF_REGS),0)
|
|
$(call detected,CONFIG_PERF_REGS)
|
|
$(call detected,CONFIG_PERF_REGS)
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+ifneq ($(NO_SYSCALL_TABLE),1)
|
|
|
|
+ CFLAGS += -DHAVE_SYSCALL_TABLE
|
|
|
|
+endif
|
|
|
|
+
|
|
# So far there's only x86 and arm libdw unwind support merged in perf.
|
|
# So far there's only x86 and arm libdw unwind support merged in perf.
|
|
# Disable it on all other architectures in case libdw unwind
|
|
# Disable it on all other architectures in case libdw unwind
|
|
# support is detected in system. Add supported architectures
|
|
# support is detected in system. Add supported architectures
|