[U-Boot] [PATCH V2 1/2] Makefile: generate symbol list from u-boot

Simon Glass sjg at chromium.org
Sat Feb 6 21:29:46 CET 2016


On 2 February 2016 at 13:41, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> This information may be useful for both debugging, and processes that want
> to perform simple forms of introspection on the U-Boot binary, such as
> determining the set of "ut" subtests that are compiled in.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> v2: New patch.
> ---
>  Makefile | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Acked-by: Simon Glass <sjg at chromium.org>

But how about using u-boot.sym? The 's' does not seem useful.

>
> diff --git a/Makefile b/Makefile
> index 4ae605810f82..2884ee676f00 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -732,7 +732,7 @@ DO_STATIC_RELA =
>  endif
>
>  # Always append ALL so that arch config.mk's can add custom ones
> -ALL-y += u-boot.srec u-boot.bin System.map u-boot.cfg binary_size_check
> +ALL-y += u-boot.srec u-boot.bin u-boot.syms System.map u-boot.cfg binary_size_check
>
>  ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
>  ifeq ($(CONFIG_SPL_FSL_PBL),y)
> @@ -1178,6 +1178,11 @@ ifeq ($(CONFIG_KALLSYMS),y)
>         $(call cmd,u-boot__) common/system_map.o
>  endif
>
> +quiet_cmd_syms ?= SYMS    $@
> +      cmd_syms ?= $(OBJDUMP) -t $< > $@
> +u-boot.syms: u-boot FORCE
> +       $(call if_changed,syms)
> +
>  # The actual objects are generated when descending,
>  # make sure no implicit rule kicks in
>  $(sort $(u-boot-init) $(u-boot-main)): $(u-boot-dirs) ;
> --
> 2.7.0
>

Regards,
Simon


More information about the U-Boot mailing list