From patchwork Thu Feb 11 22:34:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 61812 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp477792lbl; Thu, 11 Feb 2016 14:34:58 -0800 (PST) X-Received: by 10.98.13.68 with SMTP id v65mr60962012pfi.150.1455230098742; Thu, 11 Feb 2016 14:34:58 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si15230722pfi.44.2016.02.11.14.34.58; Thu, 11 Feb 2016 14:34:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751035AbcBKWe4 (ORCPT + 6 others); Thu, 11 Feb 2016 17:34:56 -0500 Received: from mail-ob0-f169.google.com ([209.85.214.169]:35835 "EHLO mail-ob0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932AbcBKWez (ORCPT ); Thu, 11 Feb 2016 17:34:55 -0500 Received: by mail-ob0-f169.google.com with SMTP id xk3so96033738obc.2; Thu, 11 Feb 2016 14:34:55 -0800 (PST) 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; bh=tkmo1QVOelJ2A22LNdxGYw5fOmQ5utRw9pT9nGmMIg4=; b=bHvrB76M+xa/rkg/KuSU/xTyRyjXd7uQgCSSh9PiObHY8wT/URCs8RyNy9N9oBBjbp xaRB83KRVMCkfv7bfeID1M5qEUrKYJuQxJzYWn990lXD37l1hAukBDObuMvPC5nlA7ha 9UDW6MyGtLe6BwzwDoCYyI31uGWClcrev8Jczu9ND6UPdaQSXyMBbx6QXstqhnX5N8BK 0gD1Uo7dvTok0K38NMz0NLVR0jEYKtg1yyKiB/Q+1olssTAdIi1cod2pkX/2xccDP9Um JDGb7KmRlgcCP/868nEinpKFt646BBNPpoTw0hrk3P7NXPjBkinzfIiY/mr9V3QGOrLf cYXA== X-Gm-Message-State: AG10YOQ+eoz1MiYKdb1d8ULZV26XCOeRdVduJuCsfpxoYVUDhFxmntwd4UKZCx5tD5R4Zg== X-Received: by 10.60.134.202 with SMTP id pm10mr49021500oeb.50.1455230095340; Thu, 11 Feb 2016 14:34:55 -0800 (PST) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id v6sm6837107oer.10.2016.02.11.14.34.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 14:34:54 -0800 (PST) From: Rob Herring To: Michal Marek Cc: devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH] kbuild: Allow using host dtc instead of kernel's copy Date: Thu, 11 Feb 2016 16:34:39 -0600 Message-Id: <1455230079-26931-1-git-send-email-robh@kernel.org> X-Mailer: git-send-email 2.5.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Development of dtc happens in its own upstream repository, but testing dtc changes against the kernel tree is useful. Change dtc to a variable that users can override. Signed-off-by: Rob Herring Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org --- scripts/Makefile.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 79e8661..ceceb53 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -262,6 +262,7 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ # DTC # --------------------------------------------------------------------------- +DTC ?= $(objtree)/scripts/dtc/dtc # Generate an assembly file to wrap the output of the device tree compiler quiet_cmd_dt_S_dtb= DTB $@ @@ -284,7 +285,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb quiet_cmd_dtc = DTC $@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ - $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \ + $(DTC) -O dtb -o $@ -b 0 \ -i $(dir $<) $(DTC_FLAGS) \ -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)