[PATCHv2,05/12] arm: Build {pie-, }util-vdso with CONFIG_VDSO_32

Submitted by Dmitry Safonov on May 29, 2019, 4:15 p.m.

Details

Message ID 20190529161515.24867-6-dima@arista.com
State New
Series "vdso: arm32 support"
Headers show

Commit Message

Dmitry Safonov May 29, 2019, 4:15 p.m.
From: Dmitry Safonov <0x7f454c46@gmail.com>

Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
---
 Makefile              | 2 +-
 criu/Makefile.crtools | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/Makefile b/Makefile
index cee8a42c9b76..475d4abaffdf 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@  endif
 # Architecture specific options.
 ifeq ($(ARCH),arm)
         ARMV		:= $(shell echo $(UNAME-M) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7')
-        DEFINES		:= -DCONFIG_ARMV$(ARMV)
+        DEFINES		:= -DCONFIG_ARMV$(ARMV) -DCONFIG_VDSO_32
 
         ifeq ($(ARMV),6)
                 USERCFLAGS += -march=armv6
diff --git a/criu/Makefile.crtools b/criu/Makefile.crtools
index d24bb174cfb7..23dd6d664f5d 100644
--- a/criu/Makefile.crtools
+++ b/criu/Makefile.crtools
@@ -90,7 +90,7 @@  obj-y			+= servicefd.o
 ifeq ($(VDSO),y)
 obj-y			+= pie-util-vdso.o
 obj-y			+= vdso.o
-obj-y			+= pie-util-vdso-elf32.o
+obj-$(CONFIG_COMPAT)	+= pie-util-vdso-elf32.o
 CFLAGS_pie-util-vdso-elf32.o	+= -DCONFIG_VDSO_32
 obj-$(CONFIG_COMPAT)	+= vdso-compat.o
 CFLAGS_REMOVE_vdso-compat.o	+= $(CFLAGS-ASAN) $(CFLAGS-GCOV)