From patchwork Wed Feb 20 21:05:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Warren X-Patchwork-Id: 222144 X-Patchwork-Delegate: twarren@nvidia.com 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 9A18C2C007C for ; Thu, 21 Feb 2013 08:06:41 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C2E1E4A15B; Wed, 20 Feb 2013 22:06:31 +0100 (CET) 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 H4CNJlNIH4ke; Wed, 20 Feb 2013 22:06:30 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 385D94A159; Wed, 20 Feb 2013 22:06:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C3E0E4A15B for ; Wed, 20 Feb 2013 22:06:26 +0100 (CET) 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 hxca6+D65QR4 for ; Wed, 20 Feb 2013 22:06:25 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by theia.denx.de (Postfix) with ESMTPS id 75D734A158 for ; Wed, 20 Feb 2013 22:06:25 +0100 (CET) Received: by mail-pb0-f49.google.com with SMTP id xa12so3088856pbc.8 for ; Wed, 20 Feb 2013 13:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-nvconfidentiality; bh=qSgX8ZaUOuWVausBXkzch5/qezD75JO7k3W0Cd1lYHk=; b=RcVzOxt1JTmYjeX1HDaP1ydpedfIKNLDY9dxtiiirdJHJQ73rGQZaP9hcTFLdjjXrJ bs9qhi3EhjQCt8Tm/0Qq0HC5yiUdxZC6jqbBBq6+ni61R3geUYAXiFnB/Zr/SBgXi/mM yH9MYLPCeDKIQaxbZOi/rMb3a6/EwYwsTSRTlKtldeiolL1K+Lo9eNyPn9IEFc8Qo3gd V5g8TJn+sCNZskatwmYBLOtvNukyJnhEt0UJmsB+hy8QXGahSrbDgNHOrqN3V2kcMp6h cjmIpRxulYjMSrDPKl7HSFIEp2y0X+XOAKyImpXg42nGN7WQTiPO0rbB9C/lonorjYVr 8bFA== X-Received: by 10.68.143.133 with SMTP id se5mr4572190pbb.189.1361394383660; Wed, 20 Feb 2013 13:06:23 -0800 (PST) Received: from localhost.localdomain (ip68-230-103-25.ph.ph.cox.net. [68.230.103.25]) by mx.google.com with ESMTPS id bi2sm112331345pab.18.2013.02.20.13.06.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Feb 2013 13:06:22 -0800 (PST) From: Tom Warren To: u-boot@lists.denx.de Date: Wed, 20 Feb 2013 14:05:47 -0700 Message-Id: <1361394350-16585-2-git-send-email-twarren@nvidia.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1361394350-16585-1-git-send-email-twarren@nvidia.com> References: <1361394350-16585-1-git-send-email-twarren@nvidia.com> X-NVConfidentiality: public Cc: afleming@freescale.com, Tom Warren , swarren@nvidia.com, twarren.nvidia@gmail.com Subject: [U-Boot] [PATCH v5 1/4] fdt: Add dts/dtsi arch & board include paths to DTS_CPPFLAGS 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 This allows the use of '#include "xyz"' in the dts/dtsi file which helps the C preprocessor find common dtsi include files. Signed-off-by: Tom Warren --- v4: new v5: Add dts/dtsi paths to DTS_CPPFLAGS instead of DTC command line dts/Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dts/Makefile b/dts/Makefile index 922c78c..6f36153 100644 --- a/dts/Makefile +++ b/dts/Makefile @@ -38,7 +38,8 @@ Please define CONFIG_ARCH_DEVICE_TREE)) # We preprocess the device tree file provide a useful define DTS_CPPFLAGS := -x assembler-with-cpp \ -DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" \ - -DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\" + -DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\" \ + -I$(SRCTREE)/board/$(VENDOR)/dts -I$(SRCTREE)/arch/$(ARCH)/dts all: $(obj).depend $(LIB)