diff options
author | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2011-01-06 10:23:54 +0900 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-01-25 22:22:30 +0100 |
commit | 8aba9dceebb14144e07d19593111ee3a999c37fc (patch) | |
tree | b6d60913bf0b5549f1cbc67aa4d7701bd0878ee0 /Makefile | |
parent | f8ea15f769773943050fa3ba444a5514066441d4 (diff) | |
download | u-boot-imx-8aba9dceebb14144e07d19593111ee3a999c37fc.zip u-boot-imx-8aba9dceebb14144e07d19593111ee3a999c37fc.tar.gz u-boot-imx-8aba9dceebb14144e07d19593111ee3a999c37fc.tar.bz2 |
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
Linker needs to use the proper endian/bfd flags even when doing partial linking.
LDFLAGS_u-boot sets linker option which is called it when U-boot is built
(u-boot final).
LDFLAGS sets necessary option by partial linking (use in cmd_link_o_target).
CC: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ $(obj)u-boot.dis: $(obj)u-boot GEN_UBOOT = \ UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ - cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ + cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM $(__OBJS) \ --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ -Map u-boot.map -o u-boot $(obj)u-boot: depend \ |