X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Fglsdk-u-boot.git;a=blobdiff_plain;f=spl%2FMakefile;h=3195390b2ff63e1bd1419d0918d2ac726a0673cd;hp=7b52bd1070292cc7c2a3b208eca3d296851b7fd4;hb=c68436fa427a69ea308d74c410067507d6c7103b;hpb=c7d35bef255dedb3ec3856982f042dde514676b0 diff --git a/spl/Makefile b/spl/Makefile index 7b52bd107..3195390b2 100644 --- a/spl/Makefile +++ b/spl/Makefile @@ -151,8 +151,12 @@ $(START): depend $(LIBS): depend $(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@)) -$(obj)u-boot-spl.lds: $(LDSCRIPT) depend - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@ +# The following line expands into whole rule which generates u-boot.lst, +# the file containing u-boots LG-array linker section. This is included into +# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file. +$(eval $(call make_u_boot_list, $(obj)u-boot.lst, $(LIBS))) +$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot.lst depend + $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj). -ansi -D__ASSEMBLY__ -P - < $< > $@ depend: $(obj).depend .PHONY: depend