Commit 1e8c1069 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

zdtm: Use predefined macro from nmk

We better should switch to nmk usage.
But lets c/p for now.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9f04c98f
ARCH ?= $(shell uname -m | sed \
-e s/i.86/i386/ \
-e s/sun4u/sparc64/ \
-e s/arm.*/arm/ \
-e s/sa110/arm/ \
-e s/s390x/s390/ \
-e s/parisc64/parisc/ \
-e s/mips.*/mips/ \
-e s/sh[234].*/sh/)
ARCH ?= $(shell uname -m | sed \
-e s/i.86/x86/ \
-e s/x86_64/x86/ \
-e s/sun4u/sparc64/ \
-e s/arm.*/arm/ \
-e s/sa110/arm/ \
-e s/s390x/s390/ \
-e s/parisc64/parisc/ \
-e s/ppc64.*/ppc64/ \
-e s/mips.*/mips/ \
-e s/sh[234].*/sh/ \
-e s/aarch64.*/arm64/)
SRCARCH ?= $(ARCH)
ifeq ($(ARCH),i386)
SRCARCH := x86
ifeq ($(ARCH),arm64)
ARCH ?= aarch64
SRCARCH ?= aarch64
endif
ifeq ($(ARCH),x86_64)
SRCARCH := x86
endif
SRCARCH ?= $(ARCH)
CPPFLAGS += -iquote $(LIBDIR)/arch/$(SRCARCH)/include
......
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