From patchwork Tue Jul 26 02:56:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Brooks X-Patchwork-Id: 72758 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1455799qga; Mon, 25 Jul 2016 20:01:03 -0700 (PDT) X-Received: by 10.55.132.198 with SMTP id g189mr25113432qkd.16.1469502063724; Mon, 25 Jul 2016 20:01:03 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d4si19708738qkf.184.2016.07.25.20.01.03; Mon, 25 Jul 2016 20:01:03 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4B50E686D4; Tue, 26 Jul 2016 03:01:03 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED 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 E6ED4622E9; Tue, 26 Jul 2016 02:57:41 +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 F2D69611F3; Tue, 26 Jul 2016 02:57:35 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by lists.linaro.org (Postfix) with ESMTPS id 86BB5686CA for ; Tue, 26 Jul 2016 02:56:38 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id m101so190324820ioi.2 for ; Mon, 25 Jul 2016 19:56:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MnuQp1/IR0wIEnYwwOpZDlrfc90B8YuXQdxJhyjTDl8=; b=I6e4jhSPzy7epkZhAbgoW+NQb1lbgUfRag6O41eq8WqKWhQDEbQB2E9RJaCgoG/UUe qJnZ7nfQp3V1Cjp9i1q/l4nTVcILebHTi5/pVbRp2WYgS9dj9su6ULf4LjBCrTi27+l3 NK2xzcvFE4LDM/o5QSEHd9wj7haVo0hXmfzwwNU+TjfN+hKjOJU/Dza8BiN2dizRE/2g HKol4yiu5aA3/RA2BzvoVZUDqzvN+b/lViqcV3NVpdyaJgs1rJC7ep3/MsH58BfqcE+m HNvGGWYEpXVLG3j8TttB6TaVEeNhZ6ZQ3z0zGu2PCRIis9lwHyHwtzuFm0OwS4EiG4Ij RSQQ== X-Gm-Message-State: AEkoouuKbGxiSy3i+7ZCjsvh1hvhy6Ty4e8ufSm0WkidenzqQWTARyJFFLeXYCWY+Pjgbjd/YRI= X-Received: by 10.157.11.163 with SMTP id 32mr11871806oth.119.1469501798152; Mon, 25 Jul 2016 19:56:38 -0700 (PDT) Received: from localhost.localdomain (68-248-140-212.lightspeed.austtx.sbcglobal.net. [68.248.140.212]) by smtp.gmail.com with ESMTPSA id z189sm12624679oig.29.2016.07.25.19.56.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 19:56:37 -0700 (PDT) From: Brian Brooks To: lng-odp@lists.linaro.org Date: Mon, 25 Jul 2016 21:56:19 -0500 Message-Id: <20160726025625.7343-7-brian.brooks@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160726025625.7343-1-brian.brooks@linaro.org> References: <20160726025625.7343-1-brian.brooks@linaro.org> X-Topics: Architecture patch Subject: [lng-odp] [PATCH v3 06/12] linux-generic: add arch/arm 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" Signed-off-by: Brian Brooks --- configure.ac | 12 ++++++++++-- platform/Makefile.inc | 6 +++--- platform/linux-generic/arch/{default => arm}/cpu_arch.h | 0 platform/linux-generic/arch/{default => arm}/odp_cpu_arch.c | 0 .../linux-generic/arch/{default => arm}/odp_sysinfo_parse.c | 0 5 files changed, 13 insertions(+), 5 deletions(-) rename platform/linux-generic/arch/{default => arm}/cpu_arch.h (100%) rename platform/linux-generic/arch/{default => arm}/odp_cpu_arch.c (100%) rename platform/linux-generic/arch/{default => arm}/odp_sysinfo_parse.c (100%) -- 2.9.0 diff --git a/configure.ac b/configure.ac index a7e058a..a42918f 100644 --- a/configure.ac +++ b/configure.ac @@ -70,17 +70,25 @@ CC_VERSION_PATCH=$(echo $CC_VERSION | cut -d'.' -f3) AX_VALGRIND_CHECK ########################################################################## -# Which architecture optimizations will we use +# Select architecture ########################################################################## AS_CASE([$host], + [arm*], [ARCH_DIR=arm], + [aarch64*], [ARCH_DIR=arm], [x86*], [ARCH_DIR=x86], [i686*], [ARCH_DIR=x86], [mips64*], [ARCH_DIR=mips64], [powerpc*], [ARCH_DIR=powerpc], - [ARCH_DIR=default] + [ARCH_DIR=undefined] ) AC_SUBST([ARCH_DIR]) +if test "${ARCH_DIR}" == "undefined"; +then + echo "ARCH_DIR is undefined, please add support for host=${host}" + exit 1 +fi + ########################################################################## # Set correct pkgconfig version ########################################################################## diff --git a/platform/Makefile.inc b/platform/Makefile.inc index e20bd3e..b45c955 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -62,9 +62,9 @@ odpapispecinclude_HEADERS = \ $(top_srcdir)/include/odp/api/spec/version.h EXTRA_DIST = \ - arch/default/cpu_arch.h \ - arch/default/odp_cpu_arch.c \ - arch/default/odp_sysinfo_parse.c \ + arch/arm/cpu_arch.h \ + arch/arm/odp_cpu_arch.c \ + arch/arm/odp_sysinfo_parse.c \ arch/mips64/cpu_arch.h \ arch/mips64/odp_cpu_arch.c \ arch/mips64/odp_sysinfo_parse.c \ diff --git a/platform/linux-generic/arch/default/cpu_arch.h b/platform/linux-generic/arch/arm/cpu_arch.h similarity index 100% rename from platform/linux-generic/arch/default/cpu_arch.h rename to platform/linux-generic/arch/arm/cpu_arch.h diff --git a/platform/linux-generic/arch/default/odp_cpu_arch.c b/platform/linux-generic/arch/arm/odp_cpu_arch.c similarity index 100% rename from platform/linux-generic/arch/default/odp_cpu_arch.c rename to platform/linux-generic/arch/arm/odp_cpu_arch.c diff --git a/platform/linux-generic/arch/default/odp_sysinfo_parse.c b/platform/linux-generic/arch/arm/odp_sysinfo_parse.c similarity index 100% rename from platform/linux-generic/arch/default/odp_sysinfo_parse.c rename to platform/linux-generic/arch/arm/odp_sysinfo_parse.c