From patchwork Tue Jan 28 10:14:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Rymarkiewicz X-Patchwork-Id: 314665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 019E52C00A2 for ; Tue, 28 Jan 2014 21:15:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 162E48BEE3; Tue, 28 Jan 2014 10:15:03 +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 sJEMfG5ZgJsd; Tue, 28 Jan 2014 10:15:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 925698BED1; Tue, 28 Jan 2014 10:15:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3CB421C26C4 for ; Tue, 28 Jan 2014 10:15:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 35B528D064 for ; Tue, 28 Jan 2014 10:15:01 +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 bIp-Eo7aOPge for ; Tue, 28 Jan 2014 10:15:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com [209.85.215.178]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7F6B08C70B for ; Tue, 28 Jan 2014 10:15:00 +0000 (UTC) Received: by mail-ea0-f178.google.com with SMTP id a15so114324eae.23 for ; Tue, 28 Jan 2014 02:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=pRFfXDTSsrvgVDVahTSdXe0DSWTzTmLl1F5IPgwKwdE=; b=Hpi2WjX1k8HBRjoIZ646vRrVZMss+tPqAOKwv6YrdvwSUD9Z5LTZSX0ZnV3TDv+COS jlYGFdHw4aomf9S2WhrKSwu6uHcy/5gLFerWZhLqeJw8bioGkWeHHLOfENIN+63fyoLN Gu+Xtr8oV8vSNr2p+Gif7IOPejPxgLbX3ow0NJw6Z5qkd51gfkQ+rnobc13xOtUo16Ww I0e0rIx0+RNgkJDi3bD65U0ffgdLhFC4UlgTv0epK+0aJCu2b9bSUQoT1l3rH0NBEGCP xsh7/GJ9FEzHgVTvob7jzCBrEcVlw67SrwxGr3jRSEyQlFgqUq8UKbAU9rah3WjLoCsg uAIQ== X-Received: by 10.15.81.196 with SMTP id x44mr827225eey.31.1390904099083; Tue, 28 Jan 2014 02:14:59 -0800 (PST) Received: from T440.ice.intel.com ([134.191.221.208]) by mx.google.com with ESMTPSA id z46sm53831718een.1.2014.01.28.02.14.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 02:14:58 -0800 (PST) From: Waldemar Rymarkiewicz To: buildroot@busybox.net Date: Tue, 28 Jan 2014 11:14:50 +0100 Message-Id: <1390904090-27934-1-git-send-email-waldemar.rymarkiewicz@gmail.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCH] Run post scripts referenced by relative paths X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net This fix will let to run post scripts seamlessly while are referenced by relative paths. Scripts referenced by full path still works. Signed-off-by: Waldemar Rymarkiewicz --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 067458b..ef7f4c2 100644 --- a/Makefile +++ b/Makefile @@ -554,7 +554,7 @@ endif @$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)), \ $(call MESSAGE,"Executing post-build script $(s)"); \ - $(USER_HOOKS_EXTRA_ENV) $(s) $(TARGET_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep)) + $(USER_HOOKS_EXTRA_ENV) $(abspath $(s)) $(TARGET_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep)) ifeq ($(BR2_ENABLE_LOCALE_PURGE),y) LOCALE_WHITELIST=$(BUILD_DIR)/locales.nopurge @@ -600,7 +600,7 @@ endif target-post-image: @$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_IMAGE_SCRIPT)), \ $(call MESSAGE,"Executing post-image script $(s)"); \ - $(USER_HOOKS_EXTRA_ENV) $(s) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep)) + $(USER_HOOKS_EXTRA_ENV) $(abspath $(s)) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep)) toolchain-eclipse-register: ./support/scripts/eclipse-register-toolchain `readlink -f $(O)` $(notdir $(TARGET_CROSS)) $(BR2_ARCH)