X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=Makefile;h=cc9dc0e479e1db376361b95337bd4c9448205352;hb=895b6e8b4408108a9b5cea99dcb378c3524b18b2;hp=a4e833e476fe129fce75149d89ff0dc77b8b11dc;hpb=50ec72111983ac4b3bf1d15d4382d9dca62d14ca;p=vpp.git diff --git a/Makefile b/Makefile index a4e833e476f..cc9dc0e479e 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,13 @@ CCACHE_DIR?=$(BR)/.ccache GDB?=gdb PLATFORM?=vpp SAMPLE_PLUGIN?=no +MACHINE=$(shell uname -m) + +ifeq ($(MACHINE),$(filter $(MACHINE),x86_64)) export AESNI?=y +else +export AESNI?=N +endif ,:=, define disable_plugins @@ -81,18 +87,16 @@ endif RPM_DEPENDS = redhat-lsb glibc-static java-1.8.0-openjdk-devel yum-utils RPM_DEPENDS += apr-devel RPM_DEPENDS += numactl-devel -RPM_DEPENDS += check - -ifeq ($(filter centos,$(OS_ID)),$(OS_ID)) - RPM_DEPENDS += check-devel subunit subunit-devel -endif +RPM_DEPENDS += check check-devel ifeq ($(OS_ID)-$(OS_VERSION_ID),fedora-25) + RPM_DEPENDS += subunit subunit-devel RPM_DEPENDS += openssl-devel RPM_DEPENDS += python-devel RPM_DEPENDS += python2-virtualenv RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries' else ifeq ($(shell if [ "$(OS_ID)" = "fedora" ]; then test $(OS_VERSION_ID) -gt 25; echo $$?; fi),0) + RPM_DEPENDS += subunit subunit-devel RPM_DEPENDS += compat-openssl10-devel RPM_DEPENDS += python2-devel RPM_DEPENDS += python2-virtualenv @@ -113,9 +117,17 @@ else ifeq ($(findstring y,$(AESNI)),y) RPM_DEPENDS += https://kojipkgs.fedoraproject.org//packages/nasm/2.12.02/2.fc26/x86_64/nasm-2.12.02-2.fc26.x86_64.rpm endif -RPM_SUSE_DEPENDS = autoconf automake bison ccache chrpath clang distribution-release gcc6 glibc-devel-static +RPM_SUSE_DEPENDS = autoconf automake bison ccache check-devel chrpath clang distribution-release gcc6 glibc-devel-static RPM_SUSE_DEPENDS += java-1_8_0-openjdk-devel indent libopenssl-devel libtool make openssl-devel -RPM_SUSE_DEPENDS += python-devel python-pip python-rpm-macros shadow nasm libnuma-devel rpm-build +RPM_SUSE_DEPENDS += python-devel python-pip python-rpm-macros shadow libnuma-devel rpm-build + +ifeq ($(OS_ID),opensuse) +ifeq ($(findstring y,$(AESNI)),y) + RPM_SUSE_DEPENDS += https://download.opensuse.org/tumbleweed/repo/oss/suse/x86_64/nasm-2.13.01-2.1.x86_64.rpm +else + RPM_SUSE_DEPENDS += nasm +endif +endif ifneq ($(wildcard $(STARTUP_DIR)/startup.conf),) STARTUP_CONF ?= $(STARTUP_DIR)/startup.conf @@ -514,7 +526,7 @@ endif $(call banner,"Building $(PKG) packages") @make pkg-$(PKG) ifeq ($(OS_ID)-$(OS_VERSION_ID),ubuntu-16.04) - @make COMPRESS_FAILED_TEST_LOGS=yes test + @make COMPRESS_FAILED_TEST_LOGS=yes RETRIES=3 test endif