[U-Boot] Board-specific commands unintentionally linked into SPL?

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Fri Aug 3 18:40:58 CEST 2012


Hi Tyler,

2012/8/3 Tyler Olmstead <tyler.j.olmstead at gmail.com>:

> Yes, the #ifndef works perfectly for me. However, I also agree with
> your sentiment regarding build magic, which is why I wonder if
> removing the $GEN_UBOOT linker magic from the SPL makefile wouldn't be
> the best approach. If this was done, then my U-Boot command wouldn't
> have been linked into SPL in the first place, it wouldn't require any
> cluttering of #ifdef's, and would eliminate the potential of others
> encountering this same problem. This seems reasonable given that SPL
> shouldn't contain any command support. Thoughts?
>

Most of the spl/Makefile code was copied and adapted from the top Makefile.
Unfortunately, we have not optimized the GEN_UBOOT macro so it still
has the UNDEF_SYM magic
which is obviously unnecessary.

I would suggest to remove the UNDEF_SYM magic.

Best regards,
Daniel


More information about the U-Boot mailing list