Re: [PATCH v2 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Masahiro Yamada
2018-03-16 11:32 GMT+09:00 Nicolas Pitre : > On Fri, 16 Mar 2018, Masahiro Yamada wrote: > >> +# Recurse until adjust_autoksyms.sh is satisfied >> +PHONY += autoksyms_recursive >> +autoksyms_recursive: $(vmlinux-deps) >> + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \ >>

Re: [PATCH v2 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Nicolas Pitre
On Fri, 16 Mar 2018, Masahiro Yamada wrote: > +# Recurse until adjust_autoksyms.sh is satisfied > +PHONY += autoksyms_recursive > +autoksyms_recursive: $(vmlinux-deps) > + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \ > "$(MAKE) -f $(srctree)/Makefile vmlinux" > -endif

[PATCH v2 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Masahiro Yamada
If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from a pristine state, the vmlinux is linked twice. [1] A user runs "make" [2] First build with empty autoksyms.h [3] adjust_autoksyms.sh updates autoksyms.h and recurses "make vmlinux" (begin sub-make) [4] Secon