From patchwork Tue Apr 1 04:46:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 27514 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 15645202E0 for ; Tue, 1 Apr 2014 04:46:52 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf24546684pab.1 for ; Mon, 31 Mar 2014 21:46:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=xzxlpXat5UP0APYbHeoqbFv8FwyTWdkeiAJSGON5gXE=; b=IDf5VOOE+b0lLAOzf0D3VOh2evO632SkJrJcm46bc8rErW272lzmFymjeKecVtsnnf 0v1O1pMOrHZO6M1y2l/kKpJfGQ1Ot6dmXeg5OHO4kJZBQFYC0ia82NuMaLxWLlCMzqiF 0Fjz4FMv2gYjhiKwMFEomyS8uTAI6EUdYdEIm36WnO50U5b9g7FqbPEYBjR+URlD+XaU odco+zTd95EC4lXfUDPN+VksGwx1PTNe8OejbTe1nx9CXJNSs93YHvSPmdI8AARjHqcX TdlZFZdjTCxY30Q07B56i0kI8qQT8K7+Xl3fjXKQCk5KAMrRj2EGCPZCoDJoZeVVjuLq 5z5g== X-Gm-Message-State: ALoCoQmz4uVzowdJe08i1Sq+zaBTGecPyWkaFwit60LTbcuBf0/rz54/Fa/wMUBkom3ytks7+R3Y X-Received: by 10.66.157.35 with SMTP id wj3mr12415440pab.11.1396327612184; Mon, 31 Mar 2014 21:46:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.194 with SMTP id d60ls1420756qge.86.gmail; Mon, 31 Mar 2014 21:46:52 -0700 (PDT) X-Received: by 10.58.202.133 with SMTP id ki5mr6374834vec.19.1396327612039; Mon, 31 Mar 2014 21:46:52 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id sc7si3379320vdc.13.2014.03.31.21.46.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 21:46:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so9132151vcb.16 for ; Mon, 31 Mar 2014 21:46:52 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr22409809vdc.13.1396327611960; Mon, 31 Mar 2014 21:46:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp197310vcv; Mon, 31 Mar 2014 21:46:51 -0700 (PDT) X-Received: by 10.66.65.134 with SMTP id x6mr28885372pas.12.1396327611182; Mon, 31 Mar 2014 21:46:51 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id sf3si10403433pac.83.2014.03.31.21.46.50 for ; Mon, 31 Mar 2014 21:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E37966F8AD; Tue, 1 Apr 2014 04:46:25 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from vms173017pub.verizon.net (vms173017pub.verizon.net [206.46.173.17]) by mail.openembedded.org (Postfix) with ESMTP id 669EF6E9F2 for ; Tue, 1 Apr 2014 04:46:20 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [71.191.205.189]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N3C008R0598DS10@vms173017.mailsrvcs.net> for openembedded-devel@lists.openembedded.org; Mon, 31 Mar 2014 23:46:21 -0500 (CDT) Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id 90846200BA; Tue, 01 Apr 2014 00:46:20 -0400 (EDT) From: Denys Dmytriyenko To: openembedded-devel@lists.openembedded.org Date: Tue, 01 Apr 2014 00:46:18 -0400 Message-id: <1396327578-21862-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 1.9.1 Cc: Denys Dmytriyenko Subject: [oe] [PATCH] linuxptp: fix and simplify recipe, drop dependency on kernel X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: denis@denix.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Denys Dmytriyenko * Build script tries to locate the correct /usr/include/linux/net_tstamp.h just to see if it contains definition for HWTSTAMP_TX_ONESTEP_SYNC. But that header file hasn't changed in at least 5 years. The result of the check is to pass additional defines to the build, which can be passed via EXTRA_OEMAKE. * The sed command on makefile wasn't even working, plus there's no AR, prefix is not used and better way is to use EXTRA_CFLAGS and EXTRA_LDFLAGS anyway. * Neither autotools nor pkgconfig are use during the build, don't inherit them. Signed-off-by: Denys Dmytriyenko --- meta-oe/recipes-connectivity/linuxptp/linuxptp_1.4.bb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/meta-oe/recipes-connectivity/linuxptp/linuxptp_1.4.bb b/meta-oe/recipes-connectivity/linuxptp/linuxptp_1.4.bb index c708b13..10d6744 100644 --- a/meta-oe/recipes-connectivity/linuxptp/linuxptp_1.4.bb +++ b/meta-oe/recipes-connectivity/linuxptp/linuxptp_1.4.bb @@ -2,20 +2,13 @@ DESCRIPTION = "Precision Time Protocol (PTP) according to IEEE standard 1588 for LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -DEPENDS = "virtual/kernel" - SRC_URI = "http://sourceforge.net/projects/linuxptp/files/v${PV}/linuxptp-${PV}.tgz" SRC_URI[md5sum] = "a37ad2b2ef7d1ebc4d64a66d3fe55cdf" SRC_URI[sha256sum] = "6cfd5291fb7394cc9f25458927874a203971b66b76d1c9d6568e007d0cbd81f2" -inherit autotools pkgconfig - -EXTRA_OEMAKE = 'KBUILD_OUTPUT="${STAGING_KERNEL_DIR}" CROSS_COMPILE="${TARGET_PREFIX}"' - -do_configure_append () { - find ${S} -name makefile | xargs sed -i 's,^\(CC\|CFLAGS\|prefix\|AR\)=,\1 ?=,g' -} +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} ARCH=${TARGET_ARCH} \ + EXTRA_CFLAGS='-D_GNU_SOURCE -DHAVE_CLOCK_ADJTIME -DHAVE_ONESTEP_SYNC'" do_install () { install -d ${D}/${bindir}