From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Mon, 23 Jan 2012 09:08:25 +0100 Subject: [U-Boot] device tree compilation problems. In-Reply-To: References: <4F1CC2EE.2090004@gmail.com> Message-ID: <20120123080825.7EED616BEE15@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message you wrote: > > > $(DT_BIN): $(TOPDIR)/board/$(VENDOR)/dts/$(DEVICE_TREE).dts > > - cat $< | $(CPP) -P $(DTS_CPPFLAGS) - >$@.tmp > > - $(DTC) -R 4 -p 0x1000 -O dtb -o ${DT_BIN} $@.tmp > > - rm $@.tmp ... > The lines above are running the .dts file through the C proprocessor > to create a tmp file, which is then compiled. It is only really used > to get the name of the SOC's device tree include file - see the > definition of DTS_CPPFLAGS. Is there actually any reason for the "cat" (the UUOCA seems to be extinct these days, cf. http://partmaps.org/era/unix/award.html) and the tmp file? Why not rewriting as $(CPP) -P $(DTS_CPPFLAGS) < $< | \ $(DTC) -R 4 -p 0x1000 -O dtb -o ${DT_BIN} - ? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de ######## This message was made from 100% recycled electrons. ########