From patchwork Mon Sep 11 19:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112225 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4217451qgf; Mon, 11 Sep 2017 12:13:12 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB0b5o8jO5BMUxmOJ7d8yn4iYVM/a2i01DY7e9sBCBv6F8/7ROysHDhuUbCHb1Cn2Jo4OiR X-Received: by 10.237.61.221 with SMTP id j29mr18999370qtf.282.1505157192807; Mon, 11 Sep 2017 12:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505157192; cv=none; d=google.com; s=arc-20160816; b=feJMVH6LNSs31RkPTADQEe5earfOkqfgsNwIJx4igkXV8MaR6mo4bghvshKJoUFq5z kl8ZMZtf4TxU+XGVN64UU2cgtqdWPufIbG1L2nWfQuvdpSs26NQSs5gODKnjiFWcbTAv qmI7a307/TCKrfaZ87jesfW090WRxFH50Pa79vT9XukWKeYD1pIAhw27i68RNqXCQ7Qb rCp2D6xyebpi+C+FRXLN57ZChqRUNxyPXIroSb8TdaTkDduruEoC2kjxYAmi9X1MCKvo PN1QIoHB+qYx28eRcHHDR/Fr1WpoQx86enmbkj+HEfPa49zyG6rQP0RWQXRPle1c0a/8 ZUGQ== 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=0dRsqI2wlgAYccJkB+EGl+23WGrRhKsx0RifO14dL3g=; b=waMZVpfxMjN+JJif+e3nwsQdEK5fxW5BnLctQjrVBt/doRSVNIKYYr9u+2A74h6SF8 7RTsBf1kkcCCbCHR3V2+f/xgZEXJM83efFfeiukscbArvrRK8ThZzrqhYqE+Xgm6r7mF FA8pdiMrrcLgzpjpCZqBM18xdRdDA/3xwjiMc9/d5ypNqDd5chNFLAnYcBu9LN0FKN8l WEDvvIxwH+vIDKC1YKqN5GQwv4yTjof/SQUHCZ2uo+uZF77rQ7a+PdbEhrBJRY7+r5we bK1j4Fr8x62Z/VF8mVGDCQtyXIxxYZAG6czvrm9oUR/UeJM5eUrligvUlVhn6yA1fOBu +doQ== ARC-Authentication-Results: i=1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h3si9620696qkc.496.2017.09.11.12.13.12; Mon, 11 Sep 2017 12:13:12 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 6C5E862C5D; Mon, 11 Sep 2017 19:13:12 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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 8822D62DA3; Mon, 11 Sep 2017 19:01:55 +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 932F4606A8; Mon, 11 Sep 2017 19:01:20 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 27B0160C80 for ; Mon, 11 Sep 2017 19:00:32 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 2020D5D83FDC for ; Mon, 11 Sep 2017 22:00:31 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CV0mAKJPRx-0VqG5u0b; Mon, 11 Sep 2017 22:00:31 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Xiwxkqm3eV-0UlSjVES; Mon, 11 Sep 2017 22:00:30 +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: Mon, 11 Sep 2017 22:00:05 +0300 Message-Id: <1505156408-13887-17-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505156408-13887-1-git-send-email-odpbot@yandex.ru> References: <1505156408-13887-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 173 Subject: [lng-odp] [PATCH API-NEXT v1 16/19] DEPENDENCIES: document changes in CUnit localization 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 Reviewed-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- /** Email created from pull request 173 (muvarov:api-next) ** https://github.com/Linaro/odp/pull/173 ** Patch: https://github.com/Linaro/odp/pull/173.patch ** Base sha: 7fa8e2c97ed18f8dd6e95cbc78b7e668ccb98869 ** Merge commit sha: 057be0905a62a157cc96a91743ea70e66e8554ca **/ DEPENDENCIES | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index a194cad1..e309b339 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -9,12 +9,13 @@ Prerequisites for building the OpenDataPlane (ODP) API automake autoconf libtool + pkg-config On Debian/Ubuntu systems: - $ sudo apt-get install automake autoconf libtool + $ sudo apt-get install automake autoconf libtool pkg-config On CentOS/RedHat/Fedora systems: - $ sudo yum install automake autoconf libtool + $ sudo yum install automake autoconf libtool pkgconfig 3. Required libraries @@ -199,11 +200,11 @@ Prerequisites for building the OpenDataPlane (ODP) API 4.0 Packages needed to build API tests - Cunit test framework version 2.1-3 is required - Cunit prvodes a framework to run the API test suite that proves conformance to the + CUnit test framework version 2.1-3 is required + CUnit provides a framework to run the API test suite that proves conformance to the ODP API. The home page http://cunit.sourceforge.net/doc/introduction.html -4.1 Native Cunit install +4.1 Native CUnit install # Debian/Ubuntu $ apt-get install libcunit1-dev @@ -223,7 +224,7 @@ Prerequisites for building the OpenDataPlane (ODP) API sudo make install # ... OR ... Install CUnit into user defined location. The same path is - # used in step 4.4 --with-cunit-path=/home/ + # used in step 4.4: PKG_CONFIG_PATH=/home//lib/pkgconfig ./configure --prefix=/home/ make make install @@ -232,20 +233,24 @@ Prerequisites for building the OpenDataPlane (ODP) API # reboot, before trying to run e.g. 'make distcheck'. sudo ldconfig -4.3 Cross compile of Cunit +4.3 Cross compile of CUnit $ git svn clone http://svn.code.sf.net/p/cunit/code/trunk cunit-code $ cd cunit-code $ ./bootstrap $ ./configure --host=arm-linux-gnueabihf --prefix=/home/${USER}/src/install-cunit -4.4 Using Cunit with ODP - $ Add the configuration option to the regular configuration options - # Use the default path ... - ./configure --enable-cunit +4.4 Using CUnit with ODP - # ... OR the user defined path. - ./configure --with-cunit-path=/home/ + Configure will automatically look for CUnit if validation testsuite is + enabled. By default it uses pkg-config to locate CUnit. Usually no + additional configuration will be required. Few corner cases: + + # User directory installation + ./configure PKG_CONFIG_PATH=/home//lib/pkgconfig + + # ... OR directly specifying flags + ./configure CUNIT_CFLAGS="-I/home//include" CUNIT_LIBS="/home//lib -lcunit" 5.0 Documentation Images & Doxygen