From patchwork Tue Jul 4 16:22:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Grandegger X-Patchwork-Id: 784186 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x28T813XHz9t0j for ; Wed, 5 Jul 2017 02:23:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E102687963; Tue, 4 Jul 2017 16:23:46 +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 H4rfY6p43+9E; Tue, 4 Jul 2017 16:23:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D4A3587979; Tue, 4 Jul 2017 16:23:41 +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 8B7281C0021 for ; Tue, 4 Jul 2017 16:22:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 86301877F7 for ; Tue, 4 Jul 2017 16:22: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 r0e8k6HBnfo1 for ; Tue, 4 Jul 2017 16:22:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailproxy01.manitu.net (mailproxy01.manitu.net [217.11.48.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0F92887659 for ; Tue, 4 Jul 2017 16:22:51 +0000 (UTC) Received: from onex.fritz.box (aftr-88-217-180-55.dynamic.mnet-online.de [88.217.180.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wg@grandegger.com) by mailproxy01.manitu.net (Postfix) with ESMTPSA id 73F5F1263194; Tue, 4 Jul 2017 18:22:48 +0200 (CEST) From: Wolfgang Grandegger To: buildroot@buildroot.org Date: Tue, 4 Jul 2017 18:22:37 +0200 Message-Id: <1499185359-8293-9-git-send-email-wg@grandegger.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499185359-8293-1-git-send-email-wg@grandegger.com> References: <1499185359-8293-1-git-send-email-wg@grandegger.com> Cc: Wolfgang Grandegger Subject: [Buildroot] [PATCH v6 08/10] core: install relocation script and location at the end of the build 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" The script "relocate-sdk.sh" is installed into the top directory of the SDK (HOST_DIR) and the SDK location path is stored in the file "HOST_DIR/usr/share/buildroot/sdk-location"- Signed-off-by: Wolfgang Grandegger --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f5646ad..7e92428 100644 --- a/Makefile +++ b/Makefile @@ -556,6 +556,8 @@ world: target-post-image host-finalize host-finalize: @$(call MESSAGE,"Rendering the SDK relocatable") $(TOPDIR)/support/scripts/fix-rpath host + install $(TOPDIR)/support/misc/relocate-sdk.sh $(HOST_DIR) + echo $(HOST_DIR) > $(HOST_DIR)/usr/share/buildroot/sdk-location # We need patchelf for RPATH sanitization PACKAGES += host-patchelf