From patchwork Tue Apr 1 04:47:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 27515 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0CE35202E0 for ; Tue, 1 Apr 2014 04:48:22 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf31970346obc.4 for ; Mon, 31 Mar 2014 21:48:22 -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=drIricctO5MiYiChwpjFdAZm2Fqs1W4EYxjXSgkW1U4sqADTNbUcbEEhV/pY0RibqL aUENasDYt+jGq006dMhicfzWPAOSP+ltn6SVIlv+yPpqpsJCS74c2Q8QGp4fhUbuXL4c /x9FHkgIG8zK0RBGrqic3lwHWOkqRNXwwLMthG/cKjRlovuXt0FuQC0DWwX2Jlahnt8W 0dqYKdrva8cyUnl+xtIYJJNkXGQgcuQDuSXQhBYf82m+iFCZh4VeDJoewmZDw0oxWHsz glHxSrc0iT+xdA+6GAwWMr3/J1ziRjyBaL59NaXxYZRDaEJQZn4cZdNb9KZ1q9oI6tFE aqkg== X-Gm-Message-State: ALoCoQmYIXzvSy8P1DrxDt0tpZ+Mjzqt7b8KVTajHo70wenVCmLDD+Bi3VyAKXJG29oQuK0riSvB X-Received: by 10.182.230.168 with SMTP id sz8mr12126674obc.9.1396327702548; Mon, 31 Mar 2014 21:48:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.81 with SMTP id r75ls2828761qga.71.gmail; Mon, 31 Mar 2014 21:48:22 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr22414217vdc.13.1396327702376; Mon, 31 Mar 2014 21:48:22 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id rw10si2126464vec.188.2014.03.31.21.48.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 21:48:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so8884454vcb.21 for ; Mon, 31 Mar 2014 21:48:22 -0700 (PDT) X-Received: by 10.220.167.2 with SMTP id o2mr26801291vcy.8.1396327702289; Mon, 31 Mar 2014 21:48:22 -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 v8csp197389vcv; Mon, 31 Mar 2014 21:48:21 -0700 (PDT) X-Received: by 10.67.22.100 with SMTP id hr4mr12195043pad.112.1396327701502; Mon, 31 Mar 2014 21:48:21 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id tk9si10388539pac.375.2014.03.31.21.48.20 for ; Mon, 31 Mar 2014 21:48:21 -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 105536F906; Tue, 1 Apr 2014 04:48:19 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by mail.openembedded.org (Postfix) with ESMTP id 9D0AD6F8CE for ; Tue, 1 Apr 2014 04:48:15 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [71.191.205.189]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N3C00KNA5BSIH30@vms173019.mailsrvcs.net> for openembedded-devel@lists.openembedded.org; Mon, 31 Mar 2014 23:47:52 -0500 (CDT) Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id 5F0F6200BA; Tue, 01 Apr 2014 00:47:52 -0400 (EDT) From: Denys Dmytriyenko To: openembedded-devel@lists.openembedded.org Date: Tue, 01 Apr 2014 00:47:51 -0400 Message-id: <1396327671-22282-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 1.9.1 Cc: Denys Dmytriyenko Subject: [oe] [meta-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.176 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}