[U-Boot] [PATCH 2/2] kbuild: create symbolic link only for ARM, SPARC, PowerPC, x86

Michal Marek mmarek at suse.cz
Tue May 26 09:14:03 CEST 2015


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 <yamada.masahiro at socionext.com>
> ---
> 
>  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


More information about the U-Boot mailing list