From patchwork Wed Feb 14 08:00:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 128318 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp343973ljc; Wed, 14 Feb 2018 00:04:29 -0800 (PST) X-Google-Smtp-Source: AH8x227v0EEuk38HTFgsE6R0nsx1wyzsm2CNwIMpH5/eOqOc4pME707Hhsn+P86A0T+4LqGLRIDo X-Received: by 10.200.10.4 with SMTP id b4mr987341qti.236.1518595469436; Wed, 14 Feb 2018 00:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518595469; cv=none; d=google.com; s=arc-20160816; b=BOUXIMajpRpoXStXl4PRXkSIotn4eStI4jekxE7LeBLc0PHMvqP44LINWD2ddxl/5l BaixB4N0JDcbZ1Fd6k3ssBoZ7ia+ssW9nl1fAwbiGizNfGpcqrC5Xok5j9LisC0Z4G3q PepoCBlSbN5LuFX4+dBFi4idUl1L24Ad1knEvfk09P1dgJaYzGBhLPBOCafyKOsHLFgI 0uIv5V9s46Fek1Sf0ZIx0KdW3UNgCtsYDLykUZ1rMbEEXZIhF7DZabErhQTQ7lTSt1uB OCsEknHfBDmb0qCpcTpqSjw3lqNqxvvR9cr6oMfSUUnonRYZ3JJuzE6OhX5JcBpKyyCU sTBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=OKqJGritXR5Jm3GW1IIvFj16/4lEQfQwDPMjbRH75Uk=; b=rxKEapH10jk/+nxmzixAWf/HdXqdACgASx1SM7oOjHu3d1z8ilRT8TRRXPq5H+8nX6 zd5XtY4+rKQnVXvcWBU3uVs8oanfIIBb9LywPwU9LSXqm1Pw4dlgj4iVy/anonISYom6 v4RV/IJuS2FpoFqsOSYSantEJ58ihZWHWiDhvsa+AkIrhRF6TRKpTdaEUFdGjcqsr5pd 5KRQJxIUvx7MhY1ZqPPTrvslC1uRpCjYZS0iK0c7RmO1H+PkGN2gvn7x8Joq9Ou/Y9mZ N7IdIW3wUNLZ8xSwqczZu7magr4fXq4WYj5KVTA/FNZpG/rCoMmPZjqlJ0y2yCo5ErgV 2sqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id a12si1292264qkb.279.2018.02.14.00.04.29; Wed, 14 Feb 2018 00:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id F04E66178D; Wed, 14 Feb 2018 08:04:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7CE7C61795; Wed, 14 Feb 2018 08:01:07 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 693E0607C4; Wed, 14 Feb 2018 08:00:43 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 0FB9761527 for ; Wed, 14 Feb 2018 08:00:26 +0000 (UTC) Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 9E40551043CE for ; Wed, 14 Feb 2018 11:00:24 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Em3Gz4b3bx-0OcqBwbd; Wed, 14 Feb 2018 11:00:24 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Y4JUh4BhDF-0OZKUoXi; Wed, 14 Feb 2018 11:00:24 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 14 Feb 2018 11:00:18 +0300 Message-Id: <1518595221-854-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518595221-854-1-git-send-email-odpbot@yandex.ru> References: <1518595221-854-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 462 Subject: [lng-odp] [PATCH v1 4/7] configure: add flag to build for host=default X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 462 (lumag:default-abi) ** https://github.com/Linaro/odp/pull/462 ** Patch: https://github.com/Linaro/odp/pull/462.patch ** Base sha: 41b3fa2cd994a7ef68290a07dcde5564e4640847 ** Merge commit sha: 92a3ed64c30441cbca76e6f8ab5c086fe0c83a18 **/ configure.ac | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index dd82b66ec..799d0b7b7 100644 --- a/configure.ac +++ b/configure.ac @@ -163,14 +163,6 @@ AS_CASE([$host], ) AC_SUBST([ARCH_DIR]) -########################################################################## -# Warn on the defaults if arch is undefined -########################################################################## -if test "${ARCH_DIR}" = "default"; -then - AC_MSG_WARN([ARCH_DIR is undefined, please add your ARCH_DIR based on host=${host}]) -fi - ########################################################################## # Architecture for ABI support ########################################################################## @@ -185,6 +177,23 @@ AS_CASE([$host], ) AC_SUBST([ARCH_ABI]) +AC_ARG_ENABLE([host-optimization], + [AS_HELP_STRING([--disable-host-optimization], + [disables using host-specific ARCH and ABI files])], + [], [enable_host_optimization=yes]) +if test "x$enable_host_optimization" = "xno" ; then + ARCH_DIR=default + ARCH_ABI=default-linux +fi + +########################################################################## +# Warn on the defaults if arch is undefined +########################################################################## +if test "${ARCH_DIR}" = "default"; +then + AC_MSG_WARN([ARCH_DIR is undefined, please add your ARCH_DIR based on host=${host}]) +fi + if test "${ARCH_ABI}" = "default-linux"; then AC_MSG_WARN([ARCH_ABI is undefined, please add your ARCH_ABI based on host=${host}])