mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
make: combine arch-specific options together
DEFINES, LDARCH, VDSO in one place - visually simpler, more terse. Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
3af5fb23c4
commit
578d57fb3d
35
Makefile
35
Makefile
@ -35,24 +35,6 @@ endif
|
||||
|
||||
#
|
||||
# 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)
|
||||
ARMV := $(shell echo $(UNAME-M) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7')
|
||||
DEFINES := -DCONFIG_ARMV$(ARMV)
|
||||
@ -69,17 +51,24 @@ ifeq ($(ARCH),arm)
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),aarch64)
|
||||
DEFINES := -DCONFIG_AARCH64
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86)
|
||||
DEFINES := -DCONFIG_X86_64
|
||||
VDSO := y
|
||||
DEFINES := -DCONFIG_AARCH64
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),ppc64)
|
||||
LDARCH := powerpc:common64
|
||||
VDSO := y
|
||||
DEFINES := -DCONFIG_PPC64
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),x86)
|
||||
LDARCH := i386:x86-64
|
||||
VDSO := y
|
||||
DEFINES := -DCONFIG_X86_64
|
||||
endif
|
||||
|
||||
LDARCH ?= $(SRCARCH)
|
||||
export LDARCH VDSO
|
||||
export PROTOUFIX DEFINES USERCFLAGS
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user