From patchwork Tue Mar 3 09:17:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 445596 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id DEB531400F1 for ; Tue, 3 Mar 2015 20:18:24 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=aM/ztD6A; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 130BB917E9; Tue, 3 Mar 2015 09:18:24 +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 OTtWTvnfNHfD; Tue, 3 Mar 2015 09:18:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 20D8E91811; Tue, 3 Mar 2015 09:18:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 1B9171C0B50 for ; Tue, 3 Mar 2015 09:18:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 15E2CA2D63 for ; Tue, 3 Mar 2015 09:18:22 +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 2-6H_i0qVz3M for ; Tue, 3 Mar 2015 09:18:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by fraxinus.osuosl.org (Postfix) with ESMTPS id AB95BA2CD2 for ; Tue, 3 Mar 2015 09:18:21 +0000 (UTC) Received: by pablf10 with SMTP id lf10so51730386pab.12 for ; Tue, 03 Mar 2015 01:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=EcRYXQOVAB001moPH8DObLnPawXTJHjvLiljx/7h5UU=; b=aM/ztD6ADn3IUzTtERgZTrgCv0wHbUuVYby4UUJJyAnC1VK8QpbPsfdpvVJq+3oGUP TOX7PZOV/Kgzi2k+9L+AFLehMJUaxWhsQYsQwzjV+qpD1LaFnSKO1N4RSUKswD7owrVY EIsyh6Zt+pW4TWtn6D7zi3lnSK5xSpfI4zSJdBs1BaTbp1wrSsyHYm53kMCkGEo5Dts2 N83h04qIBp3cYiXxrn6qgmvQKlqXCgKT5fh6YJFr7Glphcg/whOwWsFScq4ji9hT8d9p QFWYLoUfIWVxZKsW1b2sWexGJY1bFiu6bn+923DdahLXhxvLSubx9ImKM1xYiOvtyz8D fTyw== X-Received: by 10.67.3.73 with SMTP id bu9mr53831013pad.23.1425374301428; Tue, 03 Mar 2015 01:18:21 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id fs13sm323638pdb.38.2015.03.03.01.18.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 01:18:20 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 3 Mar 2015 10:17:18 +0100 Message-Id: <1425374255-6827-14-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425374255-6827-1-git-send-email-fabio.porcedda@gmail.com> References: <1425374255-6827-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [RFC v3 13/30] dtc: add add support for per-package staging directory 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" Use $(TARGET_CONFIGURE_OPTS) in the install commands because it builds something so it needs it to suppoer the per-package staging directory. Signed-off-by: Fabio Porcedda --- package/dtc/dtc.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/dtc/dtc.mk b/package/dtc/dtc.mk index e094f7b..3da3369 100644 --- a/package/dtc/dtc.mk +++ b/package/dtc/dtc.mk @@ -36,12 +36,13 @@ endef # For staging, only the library is needed define DTC_INSTALL_STAGING_CMDS - $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install-lib \ - install-includes + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) \ + PREFIX=/usr install-lib install-includes endef define DTC_INSTALL_TARGET_CMDS - $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_GOAL) + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \ + PREFIX=/usr $(DTC_INSTALL_GOAL) endef $(eval $(generic-package))