From 46661cf8b2b77aa36650c5bb877a54ceb43dfcdb Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 26 May 2014 11:50:12 +0400 Subject: [PATCH] vdso: make -- Export VDSO and CONFIG_VDSO We will need it to figure out if architecture needs vDSO handling code to be built. Note currently only x86 is exporting vDSO simply because ARM support is not yet ready. Signed-off-by: Cyrill Gorcunov Acked-by: Alexander Kartashov Signed-off-by: Pavel Emelyanov --- Makefile | 3 +++ Makefile.config | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 852c52e73..0d24e9f93 100644 --- a/Makefile +++ b/Makefile @@ -52,11 +52,13 @@ ARCH ?= $(shell uname -m | sed \ ifeq ($(ARCH),i386) SRCARCH := x86-32 DEFINES := -DCONFIG_X86_32 + VDSO := y endif ifeq ($(ARCH),x86_64) SRCARCH := x86 DEFINES := -DCONFIG_X86_64 LDARCH := i386:x86-64 + VDSO := y endif ifeq ($(shell echo $(ARCH) | sed -e 's/arm.*/arm/'),arm) @@ -123,6 +125,7 @@ export SRC_DIR SYSCALL-LIB SH RM ARCH_DIR OBJCOPY LDARCH LD export USERCFLAGS export cflags-y export VDSO_O +export VDSO include Makefile.inc include Makefile.config diff --git a/Makefile.config b/Makefile.config index ca46ca14f..9f1857d60 100644 --- a/Makefile.config +++ b/Makefile.config @@ -29,6 +29,9 @@ ifeq ($(call try-cc,$(STRLCAT_TEST),$(LIBS)),y) endif ifeq ($(call try-cc,$(PTRACE_PEEKSIGINFO_TEST),),y) $(Q) @echo '#define CONFIG_HAS_PEEKSIGINFO_ARGS' >> $@ +endif +ifeq ($(VDSO),y) + $(Q) @echo '#define CONFIG_VDSO' >> $@ endif $(Q) @echo '#endif /* __CR_CONFIG_H__ */' >> $@