From patchwork Mon Dec 12 14:52:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 87700 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1682701qgi; Mon, 12 Dec 2016 06:56:53 -0800 (PST) X-Received: by 10.176.83.92 with SMTP id y28mr71970783uay.128.1481554613616; Mon, 12 Dec 2016 06:56:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l2si10951777ual.200.2016.12.12.06.56.53; Mon, 12 Dec 2016 06:56:53 -0800 (PST) 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 276FA60D03; Mon, 12 Dec 2016 14:56:53 +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_H3, RCVD_IN_MSPIKE_WL 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 872B760C7E; Mon, 12 Dec 2016 14:53:17 +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 2122C60CC3; Mon, 12 Dec 2016 14:52:58 +0000 (UTC) Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by lists.linaro.org (Postfix) with ESMTPS id 2366D60C45 for ; Mon, 12 Dec 2016 14:52:40 +0000 (UTC) Received: by mail-qk0-f170.google.com with SMTP id n21so84928575qka.3 for ; Mon, 12 Dec 2016 06:52:40 -0800 (PST) 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=WjO2AZt8OHe0gFzpYZzNduYfkT4EHGGqCuf0ptqKAVA=; b=YbmaaldyUFM8X1Lv+0hvnJB5+I1Q9mS/2AThJu+PRdhymXXq0U3LxAEw0mIp18SkMz t9FI0/ChywM+d75uIvK+R1FP/eyx5Jh3ryDHvzcNkXHl8qlCCLttGPcdGIrYiNs6TqkT TCiuNisZS+522DD86bN/YPJ4yuTfTnaP3DHnVby3pjup7KCkPIwPwFEu4r1EVoEj7evB Ilnh2/xWaYn9qp8t1bQrCf1CB2ucR0T6oniehf6cdtKnmA33dYKfi9MNNfAgjwzhHOXF wfp6wlocKIEAQCNTssfCjtHgQjAC1n6RvidmwKanbSIoLdN4SFMDmOMeOoPV7EOGc5st S9dQ== X-Gm-Message-State: AKaTC01ZuisQ61kICx6h5l+cj24kTukBC+Z03IbQAgDUaYIY6MVUC4DFWHC94qSBiuRGOdrQ4LQ= X-Received: by 10.55.38.80 with SMTP id y77mr79782417qkg.51.1481554359771; Mon, 12 Dec 2016 06:52:39 -0800 (PST) Received: from localhost (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id g79sm26478978qke.26.2016.12.12.06.52.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Dec 2016 06:52:39 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 12 Dec 2016 09:52:28 -0500 Message-Id: <20161212145230.11412-5-mike.holmes@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161212145230.11412-1-mike.holmes@linaro.org> References: <20161212145230.11412-1-mike.holmes@linaro.org> Subject: [lng-odp] [PATCH 4/6] helper: select os in configure 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: Mike Holmes --- configure.ac | 14 ++++++++++++++ helper/Makefile.am | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) -- 2.9.3 diff --git a/configure.ac b/configure.ac index 20ec479..39c040d 100644 --- a/configure.ac +++ b/configure.ac @@ -154,6 +154,19 @@ fi ODP_CFLAGS="$ODP_CFLAGS -DIMPLEMENTATION_NAME=$IMPLEMENTATION_NAME" ########################################################################## +# Determine which os to build helpers for +########################################################################## +AC_ARG_WITH([os], + [AS_HELP_STRING([--with-os=os], + [select platform to be used, default linux])], + [], + [with_os=linux + ]) + +AC_SUBST([with_os]) + + +########################################################################## # Include m4 files ########################################################################## m4_include([./doc/m4/configure.m4]) @@ -323,6 +336,7 @@ AC_MSG_RESULT([ implementation_name: ${IMPLEMENTATION_NAME} ARCH_DIR ${ARCH_DIR} with_platform: ${with_platform} + with_os: ${with_os} prefix: ${prefix} sysconfdir: ${sysconfdir} libdir: ${libdir} diff --git a/helper/Makefile.am b/helper/Makefile.am index 4e59850..3805c45 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -35,7 +35,7 @@ __LIB__libodphelper_linux_la_SOURCES = \ eth.c \ ip.c \ chksum.c \ - os/linux/thread.c \ + os/@with_os@/thread.c \ hashtable.c \ lineartable.c