From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 21 Feb 2015 21:56:48 -0500 Subject: [U-Boot] [PATCH v3 12/19] kbuild: prepare for moving headers into mach-*/include/mach In-Reply-To: <1424419459-3498-13-git-send-email-yamada.m@jp.panasonic.com> References: <1424419459-3498-1-git-send-email-yamada.m@jp.panasonic.com> <1424419459-3498-13-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20150222025648.GZ25879@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Feb 20, 2015 at 05:04:12PM +0900, Masahiro Yamada wrote: > In U-Boot, SoC-specific headers are placed in > arch/$(ARCH)/include/asm/arch-$(SOC) and a symbolic link to that > directory is created at the early stage of the build process. > > Creating and removing a symbolic link during the build is not > preferred. In fact, Linux Kernel did away with include/asm-$(ARCH) > directories a long time time ago. > > As for ARM, now it is possible to collect SoC sources into > arch/arm/mach-$(SOC). It is also reasonable to move SoC headers > into arch/arm/mach-$(SOC)/include/mach. > > This commit prepares for that. > If the directory arch/$(ARCH)/mach-$(SOC)/include/mach exists, > a symbolic to that directory is created. Otherwise, a symbolic link > to arch/$(ARCH)/include/asm/arch-$(SOC) or arch-$(CPU) is created. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom