Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1953458AbdDYSfV (ORCPT ); Tue, 25 Apr 2017 14:35:21 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32888 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1953178AbdDYSbi (ORCPT ); Tue, 25 Apr 2017 14:31:38 -0400 From: frowand.list@gmail.com To: Rob Herring , stephen.boyd@linaro.org, mmarek@suse.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH v3 1/2] of: support dtc compiler flags for overlays Date: Tue, 25 Apr 2017 11:30:55 -0700 Message-Id: <1493145056-16442-2-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493145056-16442-1-git-send-email-frowand.list@gmail.com> References: <1493145056-16442-1-git-send-email-frowand.list@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 26 From: Frank Rowand The dtc compiler version that adds initial support was available in 4.11-rc1. Add the ability to set the dtc compiler flags needed by overlays. Signed-off-by: Frank Rowand --- scripts/Makefile.lib | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 0a07f9014944..0bbec480d323 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -283,6 +283,8 @@ ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),) DTC_FLAGS += -Wno-unit_address_vs_reg endif +DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) + # Generate an assembly file to wrap the output of the device tree compiler quiet_cmd_dt_S_dtb= DTB $@ cmd_dt_S_dtb= \ -- Frank Rowand