From patchwork Wed Apr 26 00:09:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 9700085 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 80907603F6 for ; Wed, 26 Apr 2017 00:10:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72DCB28389 for ; Wed, 26 Apr 2017 00:10:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65E8B284EA; Wed, 26 Apr 2017 00:10:44 +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 0FBF628389 for ; Wed, 26 Apr 2017 00:10:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946286AbdDZAKg (ORCPT ); Tue, 25 Apr 2017 20:10:36 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33420 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1433605AbdDZAKc (ORCPT ); Tue, 25 Apr 2017 20:10:32 -0400 Received: by mail-pf0-f193.google.com with SMTP id c198so13080091pfc.0; Tue, 25 Apr 2017 17:10:32 -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=VZjH7HZuAD4LV2wWPBourAc6bhYHZlM3z+K1R8mgGWk=; b=fut9AhlSeT2i3tHiX+sN8teOojFN3OsY0pteB/G9JZqPLz9DWoLBNtHVrdTFGywKsm jozapHofAHvK+f862kwQZpHewZzXyKMn6vsWWeb3V7Qhqa6BKobnrOxBr/01OY6l3g3m URvW1msYeSdYBc+yyeoimNEHuFjfoiV0hr5+gezuPf4vuyiwP9Dv1Xa/Jh88OxKA2Lez wp6d/RR/jP4NEDtg6BOy7mj9JI/qzFHh4k9ajNT5WpQaacIfV5TlPiPo1JloLOJY+/j0 i9NVbcpZKnOjtg0GPFnbW+tmx0HG9FKmGq0SU/G1mvySq8fPLrbu22+zOL54KOI1HiMN 50qg== 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=VZjH7HZuAD4LV2wWPBourAc6bhYHZlM3z+K1R8mgGWk=; b=nqoZVTss9C2zySsflSI16k0ev2STxEzDBz5tC3R/nicoA/OjvfacZmsl2GZXIgwYEb 2Z+UbBPHPgnDLRu0XYLF2l1ZujxdWVN0vqfopgzXNzjt8FlKeZIv1182/s/yxZJl7EJn MKoVS6dPZbmdxaqrhawAmWUlnLX54SOqoKf38UT2Z4gLiRcVlrFamQGv7gXPfqAApxKN bod1v71oLAPLiI6PQLmPgh1YMnq5O8oS6KaT108MqVvTFhAGceIQnOOW0rYiLKN2662k ItAQvFLFRbQ8fFNJWhsnhC4yYOZ6h5OxR89chJrpIm9PQJD1rG6MI5HXXDxxj0D+M8We rbbA== X-Gm-Message-State: AN3rC/6SaXT99nGwgXX2galRLGhsp2TGJt+yO2eqDqRpG6WxnsHTD6h1 OICb61HGy/asnw== X-Received: by 10.99.129.194 with SMTP id t185mr29569622pgd.57.1493165432144; Tue, 25 Apr 2017 17:10:32 -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 v12sm38466604pgn.5.2017.04.25.17.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Apr 2017 17:10:31 -0700 (PDT) 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 v4 1/2] of: per-file dtc compiler flags Date: Tue, 25 Apr 2017 17:09:53 -0700 Message-Id: <1493165394-29367-2-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493165394-29367-1-git-send-email-frowand.list@gmail.com> References: <1493165394-29367-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 an additional dtc compiler flag is 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= \