From patchwork Wed Mar 16 14:28:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 598425 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 3qQDPV3rZNz9t5g for ; Thu, 17 Mar 2016 01:28:46 +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=mubfT0MS; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CA72B33385; Wed, 16 Mar 2016 14:28:45 +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 RMGvf3eWmP8u; Wed, 16 Mar 2016 14:28:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0EBC23342F; Wed, 16 Mar 2016 14:28:34 +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 06A751C1209 for ; Wed, 16 Mar 2016 14:28:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 028358ACD1 for ; Wed, 16 Mar 2016 14:28:29 +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 WgVcVpNoir27 for ; Wed, 16 Mar 2016 14:28:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4D01D8AA25 for ; Wed, 16 Mar 2016 14:28:28 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id p65so192674189wmp.1 for ; Wed, 16 Mar 2016 07:28:28 -0700 (PDT) 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=Sv8RqkQhSL4Z1j3gPHxAVE/3x0DWTkEnySqp9JDKGAk=; b=mubfT0MSNQ7SXYEwM2Ox+QgtTXvbaK7gcFQ87eRdkiGe2/bk6dq7m854NiL7yUHiaa +8zXc5q4enMy43O3TIVxPKmFsXfmb8w3r7BVdCogL33+G1v23omKhjw5FlIgAw/BDjEC jWUCExEwdnHhj4jDZzUW2hzMH2s0rJs6f32DBy+1bSCwIu3guFH0PY18Xwgcu95sEkq0 T5pd86cKLeHm2M75hLFy168l6jHDaODSa6C3HcCqbYAp3LkE4BTniSa/N+mMjF38UfA0 4NqA7qc6aeyw3TmC7Q27WjGpAY5enB2mdmtVGtxzvYqX8YPukPg7j4IepkZJuJK7/kps PLUg== 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=Sv8RqkQhSL4Z1j3gPHxAVE/3x0DWTkEnySqp9JDKGAk=; b=Z1Rbg716QmL+U9HQtzB8H8jFaUchqQG+MY9ySJcobrDOQ+9SvM9LwI0I3B388vQBBc zey6gVm6m9J9rNrP2gMVgS7H5ExIu3McFdxjPoL6FrxKWasoKIT5kzP2PJcnV4V2m54+ 4PIn8UGgm/MJADeMU4VZ52Ne/L69bNs2obFF43xYGYmzkC2okVCunJHitJ1rVgdtcPcT up4ocUxfsCDf6VEzP4/GotSdGzPHM3sjuYR5F7gY8/yVmT0zxZz7XB8nsRoTRc0x65Jq 0iBFURJXdLvaw3dn2VhTEjAylIZpC0LTMUspjBK7Q3YIIy6XyWVjtcpzdUFaGkK6Vkvd j9XQ== X-Gm-Message-State: AD7BkJJZFBkGKImaUTEqM6w5grjJAO5KX8jQJ5Lez84NIQtFg0UNAJ2hOUfZ7ghMBciioA== X-Received: by 10.28.180.9 with SMTP id d9mr5067817wmf.62.1458138507033; Wed, 16 Mar 2016 07:28:27 -0700 (PDT) Received: from t450s.lan (89-92-156-188.hfc.dyn.abo.bbox.fr. [89.92.156.188]) by smtp.googlemail.com with ESMTPSA id n66sm3763729wmg.20.2016.03.16.07.28.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2016 07:28:26 -0700 (PDT) From: Gary Bisson To: buildroot@busybox.net Date: Wed, 16 Mar 2016 15:28:12 +0100 Message-Id: <1458138493-12172-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1458138493-12172-1-git-send-email-gary.bisson@boundarydevices.com> References: <1458138493-12172-1-git-send-email-gary.bisson@boundarydevices.com> Cc: yann.morin.1998@free.fr, jezz@sysmic.org Subject: [Buildroot] [PATCH v3 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 Anyway, since the libraries are copied to imx-mm, the package needs that patch to be of any use. 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 c5efc85..62c6053 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 + cd $(STAGING_DIR)/usr/lib; \ + find imx-mm -mindepth 2 -maxdepth 2 -not -type d -exec ln -fs {} . \; +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 + cd $(TARGET_DIR)/usr/lib; \ + find imx-mm -mindepth 2 -maxdepth 2 -not -type d -exec ln -fs {} . \; +endef +LIBFSLPARSER_POST_INSTALL_TARGET_HOOKS += LIBFSLPARSER_FIXUP_TARGET_PATH + $(eval $(autotools-package))