From patchwork Wed Jul 27 13:53:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 653314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rzxKy4v13z9t1v for ; Wed, 27 Jul 2016 23:53:58 +1000 (AEST) 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=k34+4U3E; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 34A8B89D3E; Wed, 27 Jul 2016 13:53:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qlb55J--7_il; Wed, 27 Jul 2016 13:53:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9E32E89D42; Wed, 27 Jul 2016 13:53:54 +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 CC4F31C1574 for ; Wed, 27 Jul 2016 13:53:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CBB0086786 for ; Wed, 27 Jul 2016 13:53:48 +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 dXmvDIM+pX-g for ; Wed, 27 Jul 2016 13:53:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2345C86870 for ; Wed, 27 Jul 2016 13:53:48 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id i5so63741870wmg.0 for ; Wed, 27 Jul 2016 06:53:48 -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=wJAD2KQL54QNa0ZwvZUtgrXt/ZyIQsYR9hwGE2f90TE=; b=k34+4U3EUo0qOBz+Ee6y2Zqi9p85wObbAZb/NEfT7wipMF3xzTGD91BJS/vHeWQ2R7 OmmhMn/uCl2Roc5BdNboRRKIwOiV+2iwNALLQFzbx/Xkg5PRx2tqrCQJT7vnUuDLBYvr +7Eb2dAmlqT9kE21nxvlnslAjGEJyL1GFvYUmTrJYQrZyURaG6Jh16SwrlTNkSGq6UxV QElezkgK5e2JPtjnf2KfqDcuYbvUZHAe5VZV5qOc7UEmtmnazPdki7DNJxul3mUFZD5T jKccUXJytki97Lm2vx4nYIblr8dhsPXGAec1Xj/uN8k+h1U0hKWGJMokaHOaPApcjmiA 59Tw== 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=wJAD2KQL54QNa0ZwvZUtgrXt/ZyIQsYR9hwGE2f90TE=; b=kI0pVJVh2GHODTF+9Ru1ykpzyhGeYs4mVHAqaRZjVhj2M93sVZc0zS2z6hL35+XnT0 Pm+aT+WZOOi9+OmrPiQ6bqjMPvq+WDzYtuhcRGnYPjdUEpw//EVbPJtUL8NLMwNi9+3e 8rm5m7wdTruPPUG3nbpnkUfr3cDGFcQX2KSluRGnFk0tbnaLbXtT/yUVSLmRlKp3zsvC zMbLbJRmrevwHzsDlu6KYiSMWZyepYlJzwOxw4gsGFyKEpYs7EdOvL1HznmkGjfEkPao qmCVGAVLu92ukNZ9BRXL4jQIfRd/1vDV+bL6tJvShSRPLngAtS8P+Uayi68eqF0JPGY7 tkzA== X-Gm-Message-State: ALyK8tLOReOCc7a1FnuFur9/41GGH1MSgsGd9q6w2R5mXoOaCXE5kiLz1DD/kOSKtLR8QQ== X-Received: by 10.28.63.8 with SMTP id m8mr55108644wma.88.1469627626728; Wed, 27 Jul 2016 06:53:46 -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 i7sm6510648wjg.42.2016.07.27.06.53.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jul 2016 06:53:46 -0700 (PDT) From: Gary Bisson To: buildroot@busybox.net Date: Wed, 27 Jul 2016 15:53:32 +0200 Message-Id: <1469627614-29709-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1469627614-29709-1-git-send-email-gary.bisson@boundarydevices.com> References: <1469627614-29709-1-git-send-email-gary.bisson@boundarydevices.com> Cc: thomas.petazzoni@free-electrons.com, outforaride@gmail.com Subject: [Buildroot] [PATCH 3/5] imx-parser: 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 --- package/freescale-imx/imx-parser/imx-parser.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/freescale-imx/imx-parser/imx-parser.mk b/package/freescale-imx/imx-parser/imx-parser.mk index a207d6e..75fe6cc 100644 --- a/package/freescale-imx/imx-parser/imx-parser.mk +++ b/package/freescale-imx/imx-parser/imx-parser.mk @@ -20,4 +20,11 @@ endef # The Makefile installs several versions of the libraries, but we only # need one of them, depending on the platform. +define IMX_PARSER_FIXUP_TARGET_PATH + find $(TARGET_DIR)/usr/lib/imx-mm -mindepth 2 -maxdepth 2 -not -type d \ + -exec mv {} $(TARGET_DIR)/usr/lib \; + rm -fr $(TARGET_DIR)/usr/lib/imx-mm +endef +IMX_PARSER_POST_INSTALL_TARGET_HOOKS += IMX_PARSER_FIXUP_TARGET_PATH + $(eval $(autotools-package))