[U-Boot] [PATCH 1/2] SPL: Make path to start.S configurable
Scott Wood
scottwood at freescale.com
Fri Sep 16 18:16:15 CEST 2011
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?
-scott
More information about the U-Boot
mailing list