From patchwork Thu Jul 26 21:26:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horst Kronstorfer X-Patchwork-Id: 173525 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id AECC82C0093 for ; Fri, 27 Jul 2012 07:34:57 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 88C0A28080; Thu, 26 Jul 2012 23:34:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4kqNzqpCAWss; Thu, 26 Jul 2012 23:34:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F3F0E28084; Thu, 26 Jul 2012 23:34:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 51D8928084 for ; Thu, 26 Jul 2012 23:34:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ScKdM49APZZA for ; Thu, 26 Jul 2012 23:34:47 +0200 (CEST) X-Greylist: delayed 436 seconds by postgrey-1.27 at theia; Thu, 26 Jul 2012 23:34:45 CEST X-policyd-weight: IN_SBL_XBL_SPAMHAUS=4.35 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from m3f4.kronos.net (188-23-94-19.adsl.highway.telekom.at [188.23.94.19]) by theia.denx.de (Postfix) with ESMTPS id 3C69728080 for ; Thu, 26 Jul 2012 23:34:45 +0200 (CEST) Received: from m3f4.kronos.net (m3f4.kronos.net [127.0.0.1]) by m3f4.kronos.net (8.14.5/8.14.5) with ESMTP id q6QLRD0g001348; Thu, 26 Jul 2012 23:27:14 +0200 Received: (from mabuze@localhost) by m3f4.kronos.net (8.14.5/8.14.5/Submit) id q6QLRDSA001347; Thu, 26 Jul 2012 23:27:13 +0200 From: Horst Kronstorfer To: u-boot@lists.denx.de Date: Thu, 26 Jul 2012 23:26:35 +0200 Message-Id: <1343337995-1291-1-git-send-email-hkronsto@frequentis.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1342184620-31448-1-git-send-email-hkronsto@frequentis.com> References: <1342184620-31448-1-git-send-email-hkronsto@frequentis.com> Subject: [U-Boot] [PATCH,v2] dts/Makefile: Turn off some predefined macros X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Add '-ansi' to DTS_CPPFLAGS to avoid unwanted expansion of dts content that matches some predefined macros. Example: A number of PowerPC related *.dts files in the kernel define a property named 'linux,network-index' which (w/o '-ansi') is expanded to '1,network-index' by the preprocessor because of '#define linux 1.' Signed-off-by: Horst Kronstorfer --- Changes in v2: - Use '-ansi' instead of '-undef.' dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dts/Makefile b/dts/Makefile index 402dfe1..3c6bc18 100644 --- a/dts/Makefile +++ b/dts/Makefile @@ -36,7 +36,7 @@ $(error Your architecture does not have device tree support enabled. \ Please define CONFIG_ARCH_DEVICE_TREE)) # We preprocess the device tree file provide a useful define -DTS_CPPFLAGS := -DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" +DTS_CPPFLAGS := -ansi -DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" all: $(obj).depend $(LIB)