From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Marek Date: Tue, 26 May 2015 15:14:03 +0800 Subject: [U-Boot] [PATCH 2/2] kbuild: create symbolic link only for ARM, SPARC, PowerPC, x86 In-Reply-To: <1432621975-4582-3-git-send-email-yamada.masahiro@socionext.com> References: <1432621975-4582-1-git-send-email-yamada.masahiro@socionext.com> <1432621975-4582-3-git-send-email-yamada.masahiro@socionext.com> Message-ID: <55641D3B.7070300@suse.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dne 26.5.2015 v 14:32 Masahiro Yamada napsal(a): > The symbolic link to SoC/CPU specific header directory is created > during the build, while it is only necessary for ARM, SPARC, x86, > and some CPUs of PowerPC. For the other architectures, it just > results in a broken symbolic link. > > Introduce CONFIG_CREATE_ARCH_SYMLINK to not create unneeded symbolic > links. > > Signed-off-by: Masahiro Yamada > --- > > arch/Kconfig | 6 ++++++ > arch/powerpc/Kconfig | 3 +++ > scripts/Makefile.autoconf | 2 ++ > 3 files changed, 11 insertions(+) [...] > diff --git a/scripts/Makefile.autoconf b/scripts/Makefile.autoconf > index f054081..a17e374 100644 > --- a/scripts/Makefile.autoconf > +++ b/scripts/Makefile.autoconf > @@ -106,6 +106,7 @@ include/config.h: scripts/Makefile.autoconf create_symlink FORCE > # Otherwise, create a symbolic link to arch/$(ARCH)/include/asm/arch-$(SOC). > PHONY += create_symlink > create_symlink: > +ifeq ($(CONFIG_CREATE_ARCH_SYMLINK),y) 'ifdef CONFIG_CREATE_ARCH_SYMLINK' is shorter and maybe easier to read. But you confused me, I thought this was a kernel patch at first :). Michal