From patchwork Thu Dec 10 13:52:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 555142 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id F17C2140788 for ; Fri, 11 Dec 2015 00:53:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b=ihVBcJfL; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 370CD33B31; Thu, 10 Dec 2015 13:53:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jypP4ZF2WEjM; Thu, 10 Dec 2015 13:53:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 081CA33B28; Thu, 10 Dec 2015 13:52:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 276001C0DBE for ; Thu, 10 Dec 2015 13:52:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 21BEB924F9 for ; Thu, 10 Dec 2015 13:52:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id anlQEg8R0Hzr for ; Thu, 10 Dec 2015 13:52:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id AD476924F7 for ; Thu, 10 Dec 2015 13:52:51 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id c201so34120793wme.0 for ; Thu, 10 Dec 2015 05:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l2k4Ogxe32CdP7+f+mx3KPiPnEo4rWJBiHlwGdfXbLk=; b=ihVBcJfLPnJS359OFu7anHkyX16oSpHHWwGM4TFM6QOaoaNEtuKiTSCrEGb2m5vQ95 ZJFAXtlWnoIr2+pd2BpuZ4wNq0odFy2tmYP3H+kA7QX6/DLsui7KYSAx2hwiNxFK1AU/ TGhg/UGc+2iof5El8xO7mDjER0ZLsbNfrFYnNP9+7wfFdRyucoqFdAbAqLMm6QuxL7rx D+Cz0Mv3M3lJHrYiwtN0f0F3oNIHS+hCDkkAIePTBopnWanLhEl/L5j3oePBVlw4hudi NQZkITC88uKuuE5PDHtMHHKFy2m//r+t1E/KcFPzSIqD44heBPkmEJYhwiJYOXdT4GKV KZLg== 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=l2k4Ogxe32CdP7+f+mx3KPiPnEo4rWJBiHlwGdfXbLk=; b=J/ZruFOiWYMmrIH9rIORchRqsQvgzjjwa2iTOmL9ZQ0N/yvuYcuk+E6gZL+r7nMUe5 Js7Wf3yoOjuDlW5ZAx/oKHJb6H/sTEVGvLIhIEAxQ+vTMvOSAe2EmaTGT6I0NZFsFFPu 3RH2lHB2+RMfdlNknF6UzkFNRTws7fTTyEay/zvok73uhvDC9Tl4ZvDJ1IAMu0pkPqQK BGX7csphaXealXgEMBcEccn4tsAV4588OzhW9Z/+CZYrzlF5gA0O8IVkkE6l09XNakXa NmDDvZPkpCzhtjYUqZRXFRGRrYElghgflBe+1rgKIu7+uKw7UakQ6XycGPNzRojPEkVR h2NQ== X-Gm-Message-State: ALoCoQmhDyfLEQtiu20BuebxgteUCxSh4M2JKJxHEA0tWgjwplzZy4l1fhDPYRmbnK/mwNcWO3XAoLQtdYlujYdh7wTT/8ymuA== X-Received: by 10.194.117.163 with SMTP id kf3mr13007358wjb.139.1449755570412; Thu, 10 Dec 2015 05:52:50 -0800 (PST) Received: from t450s.lan (89-92-99-128.hfc.dyn.abo.bbox.fr. [89.92.99.128]) by smtp.googlemail.com with ESMTPSA id r74sm981563wmb.2.2015.12.10.05.52.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Dec 2015 05:52:49 -0800 (PST) From: Gary Bisson To: buildroot@busybox.net Date: Thu, 10 Dec 2015 14:52:39 +0100 Message-Id: <1449755560-2911-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1449755560-2911-1-git-send-email-gary.bisson@boundarydevices.com> References: <1449755560-2911-1-git-send-email-gary.bisson@boundarydevices.com> Cc: thomas.petazzoni@free-electrons.com, jezz@sysmic.org Subject: [Buildroot] [PATCH v2 3/4] libfslparser: add install hooks to fix libraries path X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" By default, all the libraries are installed under /usr/lib/imx-mm which causes problems at runtime. Signed-off-by: Gary Bisson --- I'm actually not sure if libfslparser is needed at all. I couldn't find a library depending on any of the one from the package. But Yocto still has depency on the package for gst-fsl-plugins: https://github.com/Freescale/meta-fsl-arm/blob/fido/recipes-multimedia/gstreamer/gst-fsl-plugin.inc#L9 Regards, Gary --- package/libfslparser/libfslparser.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package/libfslparser/libfslparser.mk b/package/libfslparser/libfslparser.mk index 2b53d62..221d5e4 100644 --- a/package/libfslparser/libfslparser.mk +++ b/package/libfslparser/libfslparser.mk @@ -20,4 +20,19 @@ endef # The Makefile installs several versions of the libraries, but we only # need one of them, depending on the platform. +# Use symlinks in staging dir so every application can link against the libs +# whether they look at imx-mm or not (gst-fsl-plugins vs. gst1-imx). +define LIBFSLPARSER_FIXUP_STAGING_PATH + find $(STAGING_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \ + -exec ln -fs {} $(STAGING_DIR)/usr/lib \; +endef +LIBFSLPARSER_POST_INSTALL_STAGING_HOOKS += LIBFSLPARSER_FIXUP_STAGING_PATH + +# Use symlinks for install dir as well to match staging setup. +define LIBFSLPARSER_FIXUP_TARGET_PATH + find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \ + -exec ln -fs {} $(TARGET_DIR)/usr/lib \; +endef +LIBFSLPARSER_POST_INSTALL_TARGET_HOOKS += LIBFSLPARSER_FIXUP_TARGET_PATH + $(eval $(autotools-package))