[U-Boot] [PATCH 1/2] SPL: Make path to start.S configurable
Marek Vasut
marek.vasut at gmail.com
Fri Sep 16 18:22:34 CEST 2011
On Friday, September 16, 2011 06:16:15 PM Scott Wood wrote:
> On 09/15/2011 06:02 PM, Marek Vasut wrote:
> > On Friday, September 16, 2011 12:54:26 AM Scott Wood wrote:
> >> How about:
> >>
> >> ifdef CONFIG_SPL_START_FILE
> >> START := $(subst ",,$(CONFIG_SPL_START_FILE))
> >> else
> >> START := $(CPUDIR)/start.o
> >> endif
> >>
> >> START_PATH := $(dir $(START))
> >>
> >>> LIBS-y += arch/$(ARCH)/lib/lib$(ARCH).o
> >>> LIBS-y += $(CPUDIR)/lib$(CPU).o
> >>>
> >>> @@ -119,7 +125,7 @@ $(obj)u-boot-spl: depend $(START) $(LIBS)
> >>> $(obj)u-boot-spl.lds
> >>>
> >>> $(GEN_UBOOT)
> >>>
> >>> $(START): depend
> >>>
> >>> - $(MAKE) -C $(SRCTREE)/$(CPUDIR) $@
> >>> + $(MAKE) -C $(SRCTREE)/$(START_PATH) $@
> >>
> >> Yay recursive make. :-P
> >
> > Yea ... that's why that START_PATH is needed.
>
> Does START_PATH := $(dir $(START)) not work?
What if you then wanted to have start.o for SPL in x/y/spl/start_spl.o with
START_PATH=x/y and START=spl/start_spl.o ?
In currect patch, the spl code can be easily extended to support this.
Cheers
More information about the U-Boot
mailing list