From patchwork Wed Jan 31 13:00:04 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: 126326 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp704671ljc; Wed, 31 Jan 2018 05:01:36 -0800 (PST) X-Google-Smtp-Source: AH8x226XP8jfUrNjUlpSPtQGtxTNdM60iTvol3vDZCp4ZvZjO57Sik8pGX1JQDtqUEqQCwq7dI6/ X-Received: by 10.200.44.189 with SMTP id 58mr51090054qtw.214.1517403695908; Wed, 31 Jan 2018 05:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517403695; cv=none; d=google.com; s=arc-20160816; b=NIWvDnWYvBJuMk7FKxiW0yTSVyxq900PXB1GMJsIksoKiiY9/upIDe7kW0xMpeb7Kq 3JnAyyKOYmUnVmOOtV89oNQ1USLfy/xTuxhUXZ++J2OqW3uRUixc0wYxXPOV81Nz1Vxa KFjRyhHwjJITduRSI6onNofqgX97OzsOoCPMpcfMNVbhTPK2VK46KNf2UWsyjpbMO5Ac qMuotwnb8gAAcidmxnQPpg/s+CriWv04g5zH5OmeCBz5xaJtI7MSJaakab65LJ+B8PVO S3plYRN07dJSoJUifPlHJcbyhTnGRsToP6yzETxy/7k7uGFIPOUFeyziaYxhBrDExOfh kbVQ== 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=M0luLF81Omr4yLBPcuhpwIPPet9917i/sbM1wNqWnF4=; b=Un/UeZOn9IJkHgdx4jeBO3hBV9Eipp4jTn47UqYHICaRuh+xtwV5/2enqNKApO6lWX FpXCK10DY0y5UfMDWgDJFNVOnTwpRj1G0GzzM7UjLF3OENcbebjVF1uLCvwh/gbNITGB OgoKAksCNweSyk1EeM4oXWps3lDkUb7lSwyVl/DwtF8lFpFXmByqbAYXhUucwKDcuc6d aRfXJH8yrYEp1kN+wsvWRWhNRBCjySWeaIRz5NZVqiioem/Yb5cn52OHFhJAHTpIq8UB 4IBmna3XI2j+mEBU3cvFS+ab6+7CYPfEeSXQAcMTFtJl0NTF1Gq6kaHTla97x/uFzTSq chog== 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 m137si4646890qke.337.2018.01.31.05.01.35; Wed, 31 Jan 2018 05:01:35 -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 9053F61765; Wed, 31 Jan 2018 13:01:35 +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, RCVD_IN_MSPIKE_H2 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 19075616DA; Wed, 31 Jan 2018 13:00:31 +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 E4EF9616DA; Wed, 31 Jan 2018 13:00:16 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 3A532608A2 for ; Wed, 31 Jan 2018 13:00:13 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 66C0C2A2342D for ; Wed, 31 Jan 2018 16:00:11 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VHSze1lV4K-0BOicX2W; Wed, 31 Jan 2018 16:00:11 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0Ah0hJAM; Wed, 31 Jan 2018 16:00:10 +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, 31 Jan 2018 16:00:04 +0300 Message-Id: <1517403609-12603-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 1/6] configure: set ODP_ABI_COMPAT before descending into platform 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 platform m4/configure.m4 file can make use of ODP_ABI_COMPAT. So let's set it before calling into platform file. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ configure.ac | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/configure.ac b/configure.ac index 6d76bead8..1edc01f4e 100644 --- a/configure.ac +++ b/configure.ac @@ -160,6 +160,21 @@ fi PKGCONFIG_VERSION=$(echo $VERSION | awk -F '.git' '{print $1}') AC_SUBST(PKGCONFIG_VERSION) +########################################################################## +# Enable/disable ABI compatible build +########################################################################## +ODP_ABI_COMPAT=1 +abi_compat=yes +AC_ARG_ENABLE([abi-compat], + [ --disable-abi-compat disables ABI compatible mode, enables inline code in header files], + [if test "x$enableval" = "xno"; then + ODP_ABI_COMPAT=0 + abi_compat=no + #if there is no ABI compatibility the .so numbers are meaningless + ODP_LIBSO_VERSION=0:0:0 + fi]) +AM_CONDITIONAL(ODP_ABI_COMPAT, [test "x$ODP_ABI_COMPAT" = "x1"]) + ########################################################################## # Determine which platform to build for ########################################################################## @@ -282,21 +297,6 @@ AS_IF([test "x$enable_helper_debug_print" != "xno"], [ODPH_DEBUG_PRINT=1], AC_DEFINE_UNQUOTED([ODPH_DEBUG_PRINT], [$ODPH_DEBUG_PRINT], [Define to 1 to display helper debug information]) -########################################################################## -# Enable/disable ABI compatible build -########################################################################## -ODP_ABI_COMPAT=1 -abi_compat=yes -AC_ARG_ENABLE([abi-compat], - [ --disable-abi-compat disables ABI compatible mode, enables inline code in header files], - [if test "x$enableval" = "xno"; then - ODP_ABI_COMPAT=0 - abi_compat=no - #if there is no ABI compatibility the .so numbers are meaningless - ODP_LIBSO_VERSION=0:0:0 - fi]) -AM_CONDITIONAL(ODP_ABI_COMPAT, [test "x$ODP_ABI_COMPAT" = "x1"]) - ########################################################################## # Enable/disable deprecated API definitions ########################################################################## From patchwork Wed Jan 31 13:00:05 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: 126327 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp705825ljc; Wed, 31 Jan 2018 05:02:39 -0800 (PST) X-Google-Smtp-Source: AH8x225Ny5FTPH236luGjWY8rf2/Z3AkYXDZr9jUuzW7MrQPdoTZdyyixYTO0pfLGKqp0itKcLYj X-Received: by 10.129.159.140 with SMTP id w134mr22572490ywg.469.1517403759113; Wed, 31 Jan 2018 05:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517403759; cv=none; d=google.com; s=arc-20160816; b=lJlwxowPJ+IYsAZA+MgL/NsCJOQZG1gBchRaZe74QG31/VouUx9iviDQErlgEm18fZ Xr97RCAjhoyDpjBhjXqYBK96MUQgpmKYuCvrtikhyx+GASJ96DxhSizIjV01LYO31E+c /Ll8BEJSLwHo75l+J/4eoqVmnGdOOi1cgf+Ef4BJdKT+nMBD/g4cQs7zWq06O8CpUoxy eYkRdy/WNtXZ+CPUaf5VOC9HPQ5hohmF13qX6fsxHs66HQIf8QxXXuMExhTKS2RT20d3 Bq02B5Ys0nkcg/kVmsjX3hYxDVxYqEukffun58EdTQAWPHo5i6JJ4bqMmjctMW8qRkFd tU/Q== 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=974ec7IO6Gu588MNcRNxbWhCWCldkC+ZrQGWrQqtscg=; b=NFa9NTMWXxNx/q7TiCVee4UrSes7fHsceFCy9Sio+50DajA009TmBb5/u9+Ntx95CN v1TsGFURpKBjC0eldIvR1dfh8dDgho77UmA/PiOX8j1Ozq3e9GGn28Wa9kCl4dNIsm7M xiRxrFs+CLmqh/T9qiOBVFfdM1ermAJdfWBduvFagqyFfv8+cDmHSXUNYLcURMYmXYsM LhK7Ou2t2mJp+dAHSnlCEv9QoFnMpuuoUpGE2MRVzEa0s1q5sQtgJJvl0jC9ndkElsUi VklaufJ8MC5HhTObbp3CiDjncxNEdeAL0O+Zy8KkhYHT8TKpJNC+c+bShXxJDI26ZEx9 F3gg== 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 f44si1907283qte.357.2018.01.31.05.02.38; Wed, 31 Jan 2018 05:02:39 -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 C7F0B617C9; Wed, 31 Jan 2018 13:02:38 +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, 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 45D87617A1; Wed, 31 Jan 2018 13:00:42 +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 9C91C6177B; Wed, 31 Jan 2018 13:00:21 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 7B4E06094D for ; Wed, 31 Jan 2018 13:00:13 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward103j.mail.yandex.net (Yandex) with ESMTP id E290C34C4C12 for ; Wed, 31 Jan 2018 16:00:11 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id umcf4chMwM-0BbSnjkQ; Wed, 31 Jan 2018 16:00:11 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0Bhu38bh; Wed, 31 Jan 2018 16:00:11 +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, 31 Jan 2018 16:00:05 +0300 Message-Id: <1517403609-12603-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 2/6] configure: move ODP_CHECK_CFLAG to separate file 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 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ configure.ac | 8 -------- m4/odp_check_flag.m4 | 12 ++++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 m4/odp_check_flag.m4 diff --git a/configure.ac b/configure.ac index 1edc01f4e..03a233d17 100644 --- a/configure.ac +++ b/configure.ac @@ -315,14 +315,6 @@ AC_SUBST(ODP_DEPRECATED_API) ########################################################################## ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror" -dnl Use -Werror in the checks below since Clang emits a warning instead of -dnl an error when it encounters an unknown warning option. -AC_DEFUN([ODP_CHECK_CFLAG], - [AX_CHECK_COMPILE_FLAG([$1], - [ODP_CFLAGS="$ODP_CFLAGS $1"], - [], [-W -Wall -Werror], - [AC_LANG_SOURCE([int main(void) - {return 0;}])])]) ODP_CHECK_CFLAG([-Wstrict-prototypes]) ODP_CHECK_CFLAG([-Wmissing-prototypes]) ODP_CHECK_CFLAG([-Wmissing-declarations]) diff --git a/m4/odp_check_flag.m4 b/m4/odp_check_flag.m4 new file mode 100644 index 000000000..e3c8ef714 --- /dev/null +++ b/m4/odp_check_flag.m4 @@ -0,0 +1,12 @@ +dnl Use -Werror in the checks below since Clang emits a warning instead of +dnl an error when it encounters an unknown warning option. + +# ODP_CHECK_CFLAG(FLAG) +# --------------------- +# Add FLAG to ODP_CFLAGS if compiler supports that option +AC_DEFUN([ODP_CHECK_CFLAG], + [AX_CHECK_COMPILE_FLAG([$1], + [ODP_CFLAGS="$ODP_CFLAGS $1"], + [], [-W -Wall -Werror], + [AC_LANG_SOURCE([int main(void) + {return 0;}])])]) From patchwork Wed Jan 31 13:00:06 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: 126328 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp706829ljc; Wed, 31 Jan 2018 05:03:39 -0800 (PST) X-Google-Smtp-Source: AH8x225xXClLM8YdVwZIk6O3VgAo1UEx7VjV27iB8dTO/NeeAh4M2UsYyuteWsampt/qAypBuxDg X-Received: by 10.37.171.18 with SMTP id u18mr21326759ybi.88.1517403819167; Wed, 31 Jan 2018 05:03:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517403819; cv=none; d=google.com; s=arc-20160816; b=N2R0kzkvpJmkMNdlAbbhZSoXX6O6rZ5m6NKEQx/IMo2M+wdUjSU8XmV9XqrQHAa+E4 2GC0i9/RS1p7OxjrLGXAPUrqjlRF7jhLX6ueBbdpoj3s3Ms92Xlr8CoHjNRBYaSqrKWN +hrtdqTrP8UJGggUTZfXcbcd0+f0ZH/c4OCz5ygbS2h7eLV6Gn34x/oFXDtFak2VsMUQ CpWSeLLiRcX8W31uCu6Hh7NgWrLqWunzjBRXXY5Qc6rWBBNB6qGXGJRS1ARh5CryJIcv 0ZAZSlmoGKNeV6HCUjpEMb+iK383yv9w7aF0uNlFh3TM4VVfdCteXhCaazPleVHXIeSo u9aQ== 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=XszflbKhtQGC2Yw6KUpwfd1g28I9Y4/0+LDx6i1Z/8Q=; b=WPRHmcsmdKp6ngKc+WAajZnlO+OcNTxGfj9EEYCpFj0ucElow4cfreVLcUQER5Llmm afweyEUGWxwSr/UP6MxmUafIdaoqaTnJG9e6MaN1rwn1E0Rlf2OWBp1jhxFlmb0Mbahu mXDvfx17M8gHZrjITgFKUXwgmku+FleVj3GyoT65XcfCoz3U/16xn4LNy77bNqkz3VpB g0W9gVBLeWMX6h2N4OLcCQg1yU7PEto68U7yWV3XgDYQTKVTicdguk0onznYX6+NZzhZ A4IdL8UtM+sjH83JaQmAqUvFQt0M4cDfjvwMS2ykNwI2doQU8Kw3GRuRVEw3qsuFeZD8 UYSg== 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 f94si2462212qki.45.2018.01.31.05.03.38; Wed, 31 Jan 2018 05:03:39 -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 C8C60617B1; Wed, 31 Jan 2018 13:03:38 +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, 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 B293561787; Wed, 31 Jan 2018 13:00:48 +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 29F7A61765; Wed, 31 Jan 2018 13:00:22 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id D2072609ED for ; Wed, 31 Jan 2018 13:00:13 +0000 (UTC) Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 9B0B634C5708 for ; Wed, 31 Jan 2018 16:00:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id PH6M9KVVe1-0CGWg43P; Wed, 31 Jan 2018 16:00:12 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0BhCuRus; Wed, 31 Jan 2018 16:00:11 +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, 31 Jan 2018 16:00:06 +0300 Message-Id: <1517403609-12603-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 3/6] configure: set ODP_CFLAGS/CXXFLAGS before descending into platform 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 platform m4/configure.m4 file might want to change compiler flags. So let's set them before calling into platform file. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ configure.ac | 74 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/configure.ac b/configure.ac index 03a233d17..01fdc5a8c 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,43 @@ CC_VERSION_MAJOR=$(echo $CC_VERSION | cut -d'.' -f1) CC_VERSION_MINOR=$(echo $CC_VERSION | cut -d'.' -f2) CC_VERSION_PATCH=$(echo $CC_VERSION | cut -d'.' -f3) +########################################################################## +# Default warning setup +########################################################################## +ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror" + +ODP_CHECK_CFLAG([-Wstrict-prototypes]) +ODP_CHECK_CFLAG([-Wmissing-prototypes]) +ODP_CHECK_CFLAG([-Wmissing-declarations]) +ODP_CHECK_CFLAG([-Wold-style-definition]) +ODP_CHECK_CFLAG([-Wpointer-arith]) +ODP_CHECK_CFLAG([-Wcast-align]) +ODP_CHECK_CFLAG([-Wnested-externs]) +ODP_CHECK_CFLAG([-Wcast-qual]) +ODP_CHECK_CFLAG([-Wformat-nonliteral]) +ODP_CHECK_CFLAG([-Wformat-security]) +ODP_CHECK_CFLAG([-Wundef]) +ODP_CHECK_CFLAG([-Wwrite-strings]) +ODP_CHECK_CFLAG([-Wformat-truncation=0]) +ODP_CHECK_CFLAG([-Wformat-overflow=0]) + +ODP_CFLAGS="$ODP_CFLAGS -std=c99" +ODP_CXXFLAGS="$ODP_CXXFLAGS -std=c++11" + +# Extra flags for example to suppress certain warning types +ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA" + +########################################################################## +# Check if compiler supports cmpxchng16 on x86-based architectures +########################################################################## +case "${host}" in + i?86? | x86*) + if test "${CC}" != "gcc" -o ${CC_VERSION_MAJOR} -ge 5; then + ODP_CHECK_CFLAG([-mcx16]) + fi + ;; +esac + ########################################################################## # Allow valgrind suite to run against the defined tests ########################################################################## @@ -310,43 +347,6 @@ AC_ARG_ENABLE([deprecated], fi]) AC_SUBST(ODP_DEPRECATED_API) -########################################################################## -# Default warning setup -########################################################################## -ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror" - -ODP_CHECK_CFLAG([-Wstrict-prototypes]) -ODP_CHECK_CFLAG([-Wmissing-prototypes]) -ODP_CHECK_CFLAG([-Wmissing-declarations]) -ODP_CHECK_CFLAG([-Wold-style-definition]) -ODP_CHECK_CFLAG([-Wpointer-arith]) -ODP_CHECK_CFLAG([-Wcast-align]) -ODP_CHECK_CFLAG([-Wnested-externs]) -ODP_CHECK_CFLAG([-Wcast-qual]) -ODP_CHECK_CFLAG([-Wformat-nonliteral]) -ODP_CHECK_CFLAG([-Wformat-security]) -ODP_CHECK_CFLAG([-Wundef]) -ODP_CHECK_CFLAG([-Wwrite-strings]) -ODP_CHECK_CFLAG([-Wformat-truncation=0]) -ODP_CHECK_CFLAG([-Wformat-overflow=0]) - -ODP_CFLAGS="$ODP_CFLAGS -std=c99" -ODP_CXXFLAGS="$ODP_CXXFLAGS -std=c++11" - -# Extra flags for example to suppress certain warning types -ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA" - -########################################################################## -# Check if compiler supports cmpxchng16 on x86-based architectures -########################################################################## -case "${host}" in - i?86? | x86*) - if test "${CC}" != "gcc" -o ${CC_VERSION_MAJOR} -ge 5; then - ODP_CHECK_CFLAG([-mcx16]) - fi - ;; -esac - ########################################################################## # Default include setup ########################################################################## From patchwork Wed Jan 31 13:00:07 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: 126332 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1925212edc; Wed, 31 Jan 2018 05:08:43 -0800 (PST) X-Google-Smtp-Source: AH8x227rtPeyJSHf7aLYvi8XVg+T7LtBcMbP9k/yl2LOrDwmBJfL6KlhGEXDMcrMhA7yvDqmwqAB X-Received: by 10.13.237.69 with SMTP id w66mr22625919ywe.313.1517404123579; Wed, 31 Jan 2018 05:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517404123; cv=none; d=google.com; s=arc-20160816; b=FXhsFvnQUY1xaT2wVwwOj/zE/H9rw/xWA7kmSLvLBuQ0dJKuRPPykIjmGODfNr7QmO zd8PUS8xHMq364DLU5NyiyFheWTYtVUOwEwnnGIcj0b7JGtywBbOc+TlXt+nqUnT0UlD k4AZKXmXx6uMnNDRSLyWLI6NWsgDQOqh7dEXOCxvPexLhO1Ox/Nx9tvdEsc5mnYJNmBU LEXTHSoeTwRyt8ehCmj+ZT84PHB6Dlk8eM8WraitAY9yf67LJcJyn3W3IgdT09fPg549 wKmQfjqMfcKUY0FSJ6ViqSvkpruzJp/6dP08V47EPUwPU37h51eIp4q8iqu3CDp3JYh+ 1apg== 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=3JJguASYq3sYoeJWDoPLgebIg6ZmkQLCpQHi3rVaE3E=; b=HLk8d0h1qNCoIV0NMKQAnMR0tOV2m/g9d9ZSUkxx3HCyc/KL51+J8slOCEbo0g3UAI 0Z3Ry4VUysRwa74+37gfwEGdveRWLWC7Z+3HbGekbOcYGY/45Z0AchYXXV/z9jkouz99 AdzZie4y0OanHHeRAaMiwu9Tm0TrklIoSnJeiA1RAZQWx+QK8NntcQo+QGbbJKN/k1a+ iWjrw85zByspTiV2pauoN13q0IYAziPZTgGeRgQt7+BVTvHM/80jR2powXdDHg6GZY5P ONyY82zJk8OrUkkYguVADtSZIvn7akHeyrpbY6e4qFxcObN4rqnvASRhyQXfUbCkzApc +dUw== 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 n2si3293938ywl.92.2018.01.31.05.08.43; Wed, 31 Jan 2018 05:08:43 -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 2771F61765; Wed, 31 Jan 2018 13:08:43 +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, 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 1461A61787; Wed, 31 Jan 2018 13:04:10 +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 D172B616DA; Wed, 31 Jan 2018 13:04:05 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id F063D616DA for ; Wed, 31 Jan 2018 13:01:44 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 4E7F2781753 for ; Wed, 31 Jan 2018 16:00:13 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mIVnKXOgQr-0Df8Tv3I; Wed, 31 Jan 2018 16:00:13 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0ChKeBSl; Wed, 31 Jan 2018 16:00:12 +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, 31 Jan 2018 16:00:07 +0300 Message-Id: <1517403609-12603-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 4/6] configure: add ODP_CHECK_CXXFLAG 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 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ configure.ac | 1 + m4/odp_check_flag.m4 | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 01fdc5a8c..7b90b2127 100644 --- a/configure.ac +++ b/configure.ac @@ -97,6 +97,7 @@ CC_VERSION_PATCH=$(echo $CC_VERSION | cut -d'.' -f3) # Default warning setup ########################################################################## ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror" +ODP_CXXFLAGS="$ODP_CXXFLAGS -W -Wall -Werror" ODP_CHECK_CFLAG([-Wstrict-prototypes]) ODP_CHECK_CFLAG([-Wmissing-prototypes]) diff --git a/m4/odp_check_flag.m4 b/m4/odp_check_flag.m4 index e3c8ef714..827f9f011 100644 --- a/m4/odp_check_flag.m4 +++ b/m4/odp_check_flag.m4 @@ -5,8 +5,22 @@ dnl an error when it encounters an unknown warning option. # --------------------- # Add FLAG to ODP_CFLAGS if compiler supports that option AC_DEFUN([ODP_CHECK_CFLAG], - [AX_CHECK_COMPILE_FLAG([$1], + [AC_LANG_PUSH([C]) + AX_CHECK_COMPILE_FLAG([$1], [ODP_CFLAGS="$ODP_CFLAGS $1"], [], [-W -Wall -Werror], [AC_LANG_SOURCE([int main(void) - {return 0;}])])]) + {return 0;}])]) + AC_LANG_POP([C])]) + +# ODP_CHECK_CXXFLAG(FLAG) +# --------------------- +# Add FLAG to ODP_CFLAGS if compiler supports that option +AC_DEFUN([ODP_CHECK_CXXFLAG], + [AC_LANG_PUSH([C++]) + AX_CHECK_COMPILE_FLAG([$1], + [ODP_CXXFLAGS="$ODP_CXXFLAGS $1"], + [], [-W -Wall -Werror], + [AC_LANG_SOURCE([int main(void) + {return 0;}])]) + AC_LANG_POP([C++])]) From patchwork Wed Jan 31 13:00:08 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: 126331 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1925166edc; Wed, 31 Jan 2018 05:08:41 -0800 (PST) X-Google-Smtp-Source: AH8x227mccIN2wNPtZPPcE8NVpVpCK7I/0BQBFdyny+wnbVL/0LBB9PPDXrMRPDRRH/C01jw6akY X-Received: by 10.37.113.8 with SMTP id m8mr21865461ybc.56.1517404121411; Wed, 31 Jan 2018 05:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517404121; cv=none; d=google.com; s=arc-20160816; b=PJ8LB+42nsXrLDLyTjqi9FfYE+h3dkLfDHiicHndkHILEs+P0p5phYiV9gDVNQ0JXb XA+SMIDIQwvUcqm4fCjhCegszoJdsjqlB0JTd2bJgSqGD7bOu5I1+rhzKRgouNXURF84 S1c8eBQrQUiQBF6x2jUUA3kmTN6zOlzplGSokE221AUPrZtoM3jmD3v3AFGoXjv72Szz qltVNo7bEgg2A9Bcj4aESCb0WUY75hvtWDdFCXRYXBhvcZmmDbNN5qhX5Vw05mcHL6Kx +BL9fCsMZ4vYzA5/jONLLBCmTaDz7YdDpvaLWIP/7OmmCPbWACK+FliraTAYl1So06bU To4A== 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=q0kIqWfgQjsCVXSS/2K30wLxiNF9xCnlN0wivzpr7bA=; b=yudKMOEkO9dPiPyDW0suFvrZy/tkPPV6fUuPvt1DcBnXDmx0ARAxCy1h3uYvLs73nI hsE8qHVtAA9zATTnxbCZb6Fgyn7aRWX8231ya6ZkmvXQmXy+NV+OAw7p+M4BWbLnPk5Z C3FAPdrJBJWVrZWueyHgM6s88zOJuoJ09e1U6WbVWqeB1mYMvsYIp06Aop/gSaFdmHUE jQCu1TAjtrj+AkINcKD21RoM97X9sCgUxwwNqyCa0ePSbPSE1SGdLuYYy4Ug9U0l8hEh dN0kxs0Rmo4N4mPh6jfLEI5/ezW86Gf7Oh+yTSCLs0EZOkgEZ6SPIdl5xwmXbxS3Sq0c 0rVQ== 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 u19si3185749ywh.93.2018.01.31.05.08.41; Wed, 31 Jan 2018 05:08:41 -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 0B75B61765; Wed, 31 Jan 2018 13:08:41 +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, RCVD_IN_MSPIKE_H2 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 6A9EE617B1; Wed, 31 Jan 2018 13:04:33 +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 1F0E5617C1; Wed, 31 Jan 2018 13:04:25 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 7327861765 for ; Wed, 31 Jan 2018 13:02:02 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 17F0A51052FD for ; Wed, 31 Jan 2018 16:00:14 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8zjDSelXNo-0D9ajLQl; Wed, 31 Jan 2018 16:00:14 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0DhCXwlo; Wed, 31 Jan 2018 16:00:13 +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, 31 Jan 2018 16:00:08 +0300 Message-Id: <1517403609-12603-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 5/6] configure: move pthreads check to properly defined macro 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 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ m4/odp_pthread.m4 | 7 +++++++ platform/linux-generic/m4/configure.m4 | 2 +- platform/linux-generic/m4/odp_pthread.m4 | 8 -------- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 m4/odp_pthread.m4 delete mode 100644 platform/linux-generic/m4/odp_pthread.m4 diff --git a/m4/odp_pthread.m4 b/m4/odp_pthread.m4 new file mode 100644 index 000000000..f2654ac4e --- /dev/null +++ b/m4/odp_pthread.m4 @@ -0,0 +1,7 @@ +# ODP_PTHREAD +# ----------- +# Check for pthreads availability +AC_DEFUN([ODP_PTHREAD], [dnl +AX_PTHREAD([CC="$PTHREAD_CC"], + [AC_MSG_FAILURE([We require pthreads to be available])]) +]) diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 08ea1a338..7fa3652e2 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -3,7 +3,7 @@ IMPLEMENTATION_NAME="odp-linux" ODP_VISIBILITY ODP_ATOMIC -m4_include([platform/linux-generic/m4/odp_pthread.m4]) +ODP_PTHREAD ODP_TIMER ODP_OPENSSL m4_include([platform/linux-generic/m4/odp_pcap.m4]) diff --git a/platform/linux-generic/m4/odp_pthread.m4 b/platform/linux-generic/m4/odp_pthread.m4 deleted file mode 100644 index 486158942..000000000 --- a/platform/linux-generic/m4/odp_pthread.m4 +++ /dev/null @@ -1,8 +0,0 @@ -########################################################################## -# Check for pthreads availability -########################################################################## - -AX_PTHREAD([CC="$PTHREAD_CC"], [ - echo "Error! We require pthreads to be available" - exit -1 - ]) From patchwork Wed Jan 31 13:00:09 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: 126329 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp708086ljc; Wed, 31 Jan 2018 05:04:55 -0800 (PST) X-Google-Smtp-Source: AH8x2262PIrZHO6q6sa4DT1rB9TKyGfnMt/l+XNNBiDpvgsZiFYM03Z2OCxEy+L9mc09CgLnqDQ/ X-Received: by 10.55.65.20 with SMTP id o20mr39747539qka.270.1517403895043; Wed, 31 Jan 2018 05:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517403895; cv=none; d=google.com; s=arc-20160816; b=tNq1HRVBZfs5WTToDPgBaWGUgWRTe6xJKPxC23EZgzk97t5xJK8qHocUEEn6pGyyGT 07o61fni/VAba7NQp9Wazy2e0zB1j60H5dm32t0C+aZrxzEXknLyep2R/FYYCUmIahFh QtAzXEMqHOXR9ISH6fTLLcy8d8ILXbW1maBwewr+5/DFPvBFEYrefZRSQ+TIxWqhH+IU f3g+fJ6lOrpgm46g8RJu/q0DPB0jsL4DxWgsY32KVmFBtgxoh+K8S+rFH7PRvDJgShii fR281UgUnoTQFB85la/XqjUZfw3NT2UchdnOx9wXXolr6qu1u2fkQ39ksiSgILj0nHAa 4ptw== 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=eoB6OcoEqhixOIkjyZ6riucsb8xp9ZV4SE8vmiQb/bc=; b=az8HkZWxF7QuGUDZokC5kKkv1lZsexqYgTfZVW0OBzGIZlFmIIR+eYZ4U/PmJ//HVw 3cx7QCzP8rzzUUU7oQlcG+//CjJKOX6Lu6TLsmtQVaqTR/UOJqnjli93LcqyY9c56HGB ktjCpzVb0SnF7yQts5hs08Z0gPQu8oB6XWlFeY4e4APcXlNFb0vDXuNShbToyRNyBzqw 3p7M+7AsFATSmdKNwvQDNWH03zI5lbsrYVp3H/2mcJt1hsskXnHQiZU8u1untD7nu4ko eFtrQjTItgAjEPLYg7ekGo5pw9/UjS4OS9rUZqoARBgeDuyAkvOroMgQnyWIGCBv1FBY FjCQ== 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 k2si1238794qtc.210.2018.01.31.05.04.54; Wed, 31 Jan 2018 05:04:55 -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 AC829617C3; Wed, 31 Jan 2018 13:04:54 +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, RCVD_IN_MSPIKE_H2 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 13325617AD; Wed, 31 Jan 2018 13:00:50 +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 6ABD16094D; Wed, 31 Jan 2018 13:00:22 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 638FB60881 for ; Wed, 31 Jan 2018 13:00:16 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward104o.mail.yandex.net (Yandex) with ESMTP id B42A3705A89 for ; Wed, 31 Jan 2018 16:00:14 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mSJy0gDo8I-0EaKYIjc; Wed, 31 Jan 2018 16:00:14 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0EhC8Vkx; Wed, 31 Jan 2018 16:00:14 +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, 31 Jan 2018 16:00:09 +0300 Message-Id: <1517403609-12603-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 6/6] doc: move platform-specific doc distribution to platform/Makefile.inc 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 ${with_platform} in doc/platform-api-guide/Makefile.am will add to distro platform docs only for currently selected platform. Move this to platform/Makefile.inc, so that every platform doc file gets included into distro. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ doc/platform-api-guide/Makefile.am | 3 +-- platform/Makefile.inc | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/platform-api-guide/Makefile.am b/doc/platform-api-guide/Makefile.am index 27cd902ee..d1b1b0dce 100644 --- a/doc/platform-api-guide/Makefile.am +++ b/doc/platform-api-guide/Makefile.am @@ -3,8 +3,7 @@ #distribution. EXTRA_DIST = \ - Doxyfile \ - $(top_srcdir)/platform/${with_platform}/doc/*.dox + Doxyfile clean-local: diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 4714de0ee..410204bfd 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -12,3 +12,5 @@ AM_CFLAGS = "-DGIT_HASH=$(VERSION)" AM_CFLAGS += $(VISIBILITY_CFLAGS) AM_CFLAGS += @PTHREAD_CFLAGS@ + +EXTRA_DIST = doc/platform_specific.dox