[U-Boot] [PATCH] start a linker script helper file

Wolfgang Denk wd at denx.de
Sun Aug 23 22:41:02 CEST 2009


Dear Mike Frysinger,

In message <1251010079-10475-1-git-send-email-vapier at gentoo.org> you wrote:
> Start a common header file for common linker script code (such as
> workarounds for older linkers) rather than doing this in the build system.
> 
> As fallout, we no longer execute the linker every time config.mk is
> included by a build file (which can easily be 70+ times), but rather only
> execute it once.
> 
> This also fixes a bug in the major version checking by creating a macro to
> easily compare versions and keep people from making the same common
> mistake (forgetting to check major and minor together).
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> note: rather than update every linker script and add an #include, i forced
> it by using -include $(TOPDIR)/include/u-boot/u-boot.lds.h.  i think this
> is sane going forward.
> 
> also, i picked include/u-boot/ over include/asm-generic/ as the former
> seemed like a better u-boot-specific dir.  linux uses include/asm-generic/.
> doesnt matter much to me.
> 
>  Makefile                    |    8 ++++++++
>  config.mk                   |   10 ----------
>  include/u-boot/u-boot.lds.h |   25 +++++++++++++++++++++++++
>  3 files changed, 33 insertions(+), 10 deletions(-)
>  create mode 100644 include/u-boot/u-boot.lds.h

That's version 2, right?

Applied. Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Cogito cogito ergo cogito sum - "I think that I  think,  therefore  I
think that I am."          - Ambrose Bierce, "The Devil's Dictionary"


More information about the U-Boot mailing list