From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Wed, 13 Feb 2013 17:10:52 -0700 Subject: [U-Boot] [PATCH v3 1/3] Tegra: fdt: Add/enhance sdhci (mmc) nodes for all T20 DT files In-Reply-To: <1360791890-6644-2-git-send-email-twarren@nvidia.com> References: <1360791890-6644-1-git-send-email-twarren@nvidia.com> <1360791890-6644-2-git-send-email-twarren@nvidia.com> Message-ID: <511C2B8C.1040703@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/13/2013 02:44 PM, Tom Warren wrote: > Linux dts files were used for those boards that didn't already > have sdhci info populated. Tamonten has their own dtsi file with > common sdhci nodes (sourced from Linux). > diff --git a/dts/Makefile b/dts/Makefile > index 922c78c..2ef31e9 100644 > --- a/dts/Makefile > +++ b/dts/Makefile > @@ -50,7 +50,7 @@ DT_BIN := $(obj)dt.dtb > $(DT_BIN): $(TOPDIR)/board/$(VENDOR)/dts/$(DEVICE_TREE).dts > rc=$$( \ > cat $< | $(CPP) -P $(DTS_CPPFLAGS) - | \ > - { { $(DTC) -R 4 -p 0x1000 -O dtb -o ${DT_BIN} - 2>&1 ; \ > + { { $(DTC) -R 4 -p 0x1000 -i $(TOPDIR)/board/$(VENDOR)/dts -i $(TOPDIR)/arch/$(ARCH)/dts -O dtb -o ${DT_BIN} - 2>&1 ; \ > echo $$? >&3 ; } | \ > grep -v '^DTC: dts->dtb on file' ; \ > } 3>&1 1>&2 ) ; \ Shouldn't this be a separate patch? The one issue with this is that only newer versions of dtc support the -i option. The version packaged with most distros won't support it. That'll mean something like "MAKEALL -a arm" is going to fail for a lot of people without some kind of explicit action (i.e. manually installing a newer version of dtc). That's why I suggested switching from /include/ to #include, and adding the include path to the cpp command rather than dtc.