Commit 578d57fb authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

make: combine arch-specific options together

DEFINES, LDARCH, VDSO in one place - visually simpler, more terse.
Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 3af5fb23
...@@ -35,24 +35,6 @@ endif ...@@ -35,24 +35,6 @@ endif
# #
# Architecture specific options. # Architecture specific options.
ifeq ($(ARCH),x86)
LDARCH := i386:x86-64
VDSO := y
endif
ifeq ($(ARCH),aarch64)
VDSO := y
endif
ifeq ($(ARCH),ppc64)
LDARCH := powerpc:common64
VDSO := y
endif
LDARCH ?= $(SRCARCH)
export LDARCH VDSO
ifeq ($(ARCH),arm) ifeq ($(ARCH),arm)
ARMV := $(shell echo $(UNAME-M) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7') ARMV := $(shell echo $(UNAME-M) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7')
DEFINES := -DCONFIG_ARMV$(ARMV) DEFINES := -DCONFIG_ARMV$(ARMV)
...@@ -69,17 +51,24 @@ ifeq ($(ARCH),arm) ...@@ -69,17 +51,24 @@ ifeq ($(ARCH),arm)
endif endif
ifeq ($(ARCH),aarch64) ifeq ($(ARCH),aarch64)
DEFINES := -DCONFIG_AARCH64 VDSO := y
endif DEFINES := -DCONFIG_AARCH64
ifeq ($(ARCH),x86)
DEFINES := -DCONFIG_X86_64
endif endif
ifeq ($(ARCH),ppc64) ifeq ($(ARCH),ppc64)
LDARCH := powerpc:common64
VDSO := y
DEFINES := -DCONFIG_PPC64 DEFINES := -DCONFIG_PPC64
endif endif
ifeq ($(ARCH),x86)
LDARCH := i386:x86-64
VDSO := y
DEFINES := -DCONFIG_X86_64
endif
LDARCH ?= $(SRCARCH)
export LDARCH VDSO
export PROTOUFIX DEFINES USERCFLAGS export PROTOUFIX DEFINES USERCFLAGS
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment