From: Masahiro Yamada Date: Tue, 18 Feb 2014 18:25:04 +0900 Subject: [U-Boot] [PATCH] dts: re-write dts/Makefile more simply with Kbuild In-Reply-To: References: <20140204190041.4830.AA925319@jp.panasonic.com> Message-ID: <20140218182504.A12E.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, > > > - dts/dt.dtb > > This is a temporary file, probably deleted during the build. No. It is a temporary file, but it must not be deleted during the build. Otherwise, dts/dt.dtb will be re-generated at every build even when it shouldn't. > I'm not > even sure if it is created when you are building multiple files. > Perhaps it use just used for CONFIG_OF_EMBED? My patch is using dts/dt.dtb for both CONFIG_OF_EMBED and CONFIG_OF_SEPARTE. If you don't want to generate dts/dt.dtb at all, most of lines in dts/Makefile must be moved to the top Makefile, which leads we get the top Makefile fatter and dirtier. > > - ./u-boot.dtb > > > > But, if you really need a DTB at the top directory, > > I can revive u-boot.dtb at version 3. > > For now I think there is a 'default' .dtb for each board config. After > all U-Boot does not have a way to select between several of them at > runtime. So it makes sense for this one to be made available as it > currently is I think. Perhaps it could be a symlink to the real one? Creating a symbolic link during the build is generally troublesome and a bad idea, I think. Best Regards Masahiro Yamada