From patchwork Mon Apr 24 23:05:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 9697347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 635ED603F3 for ; Mon, 24 Apr 2017 23:07:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 536F426212 for ; Mon, 24 Apr 2017 23:07:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4693D28423; Mon, 24 Apr 2017 23:07:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B946D26212 for ; Mon, 24 Apr 2017 23:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1174562AbdDXXGf (ORCPT ); Mon, 24 Apr 2017 19:06:35 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:33634 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S979123AbdDXXGB (ORCPT ); Mon, 24 Apr 2017 19:06:01 -0400 Received: by mail-io0-f196.google.com with SMTP id k87so51541995ioi.0; Mon, 24 Apr 2017 16:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LtCXQdVqLz/uxExFHEglGVqrnJNqdXZoEhmnYYbC5Es=; b=h1G9LAOTlHWK572h8b85yi3W8G7GNoWWQRINRgowbvIzim7O9WtZJUoBCKW/xvo4P3 6ccSZm4VaMCcEro9sbpA4e+m6nMh3VFnABrkEEm5Sqqr/tSSQIPjqJjMSHkff80Benk8 7DsxtqG8OJjeIVj0+wxbFoe82HbR86QMCjFXZH8+6s+yyTJr5pIB8n/E8AQtOdoD0w/e 3Y+t18XciF4ZQTOt0GTS3XeKbErJQqO5r5WSJhVwcO5UM4LAcHDCBKpSfK+Ypkktx5IY 4bxVD1iOi9Sjtt9+qAsuu1xLwteaWfO7LLNDiQi/6y6pv1zwCnFAaFTlHxtXxqjSfSiu XRJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LtCXQdVqLz/uxExFHEglGVqrnJNqdXZoEhmnYYbC5Es=; b=LgwjLtXJHC53uAGDQ5f4wZY5LfGo/PG3AO2sJgDh3GWjlTNZJloUuqiClrXJ8/jhef tTmxSBlfMYnQbMudJzeaRiwhoYpcr+T2IqaWKYLnQpp3O3ghT5Wte5uiTV1+KQNNuGCz 9rkMIk1q7EQlE7frWAqOqcV/vuThb7Mi1x6wf66QrHnXr0kW53QcMC2cJlZHaANa1Doc y2rXl0kcz67f5HkOS4XoJwU9Ss5IjfRt35TpTTqJ0rDIwlL8IqHIs2q5gx91BEAY8Lhk be4myxmxZQvSE6K5EnyzU+MuDREfNzB0k7m48hpZP4Fy2VqYDHr4sYm0ruo7bG8z/VsP 09Mg== X-Gm-Message-State: AN3rC/57LcpKJFbqezAjPj01upaXyxZGXFamjL8FoMF8bVHrlq9mv5fI Di0pyyx+eP3rNA== X-Received: by 10.107.27.71 with SMTP id b68mr9490524iob.65.1493075160220; Mon, 24 Apr 2017 16:06:00 -0700 (PDT) Received: from localhost.localdomain (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id 34sm8639845ioh.56.2017.04.24.16.05.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Apr 2017 16:05:59 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring , stephen.boyd@linaro.org, Michal Marek Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH v2 1/2] of: support dtc compiler flags for overlays Date: Mon, 24 Apr 2017 16:05:18 -0700 Message-Id: <1493075119-32026-2-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493075119-32026-1-git-send-email-frowand.list@gmail.com> References: <1493075119-32026-1-git-send-email-frowand.list@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Masahiro Yamada --- 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= \