From: Tom Rini Date: Tue, 18 May 2021 18:26:08 -0400 Subject: [PATCH] Makefile: Handle building in a very old build directory In-Reply-To: <20210506193153.1.I12b024b967a528820ebd4897e7246f25dbf88d45@changeid> References: <20210506193153.1.I12b024b967a528820ebd4897e7246f25dbf88d45@changeid> Message-ID: <20210518222608.GT17669@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 Thu, May 06, 2021 at 07:32:23PM -0600, Simon Glass wrote: > Versions of U-Boot before 2014.01 created a symlink from include/asm to > the architecture-specific header directory. > > If an ARM board is build with that old version, then sandbox is built on > a more recent version (both with in-tree builds), the include/asm symlink > confuses the build system. It picks up the ARM headers when it should be > using the sandbox ones. > > Since 2014 U-Boot has only created a symlink inside the include/asm/ > directory and only for out-of-tree builds. So for in-tree builds it does > not expect to see an include/asm symlink. It is not removed by > 'make mrproper'. It does show up with 'git status' but is easy enough to > miss. > > Add include/asm to the files to remove with 'make mkproper'. For recent > U-Boot builds this has no effect, since include/asm is a directory, not a > file. If the include/asm symlink is there, it will be removed. > > Reported-by: Marek Szyprowski > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: