All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Problem: the build does not recurse into subdirectory
@ 2016-12-17  0:18 Maxim Sloyko
  2016-12-17 22:46 ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Sloyko @ 2016-12-17  0:18 UTC (permalink / raw)
  To: u-boot

Greetings,

I'm working on adding new platform to U-Boot and right now I'm trying
to clean up the directory structure, but running into a problem of
Make not recursing into a subdirectory that I've created.

in my arch/arm/mach-aspeed/Makefile I have this:

obj-$(CONFIG_ASPEED_AST2500) += ast2500/ ast2500-board.o

and then in arch/arm/mach-aspeed/ast2500/Makefile:

$obj-y += clk_ast2500.o sdram_ast2500.o

When I try to build everything, I get this error:

arm-linux-gnueabi-ld.bfd: cannot find
arch/arm/mach-aspeed/ast2500/built-in.o: No such file or directory

If instead in arch/arm/mach-aspeed/Makefile I specify:

obj-$(CONFIG_ASPEED_AST2500) += ast2500/clk_ast2500.o
ast2500/sdram_ast2500.o ast2500-board.o

(That is, I just added binaries from the lower level dir explicitly)

everything builds fine, which means that CONFIG_ASPEED_AST2500 is defined.

Any ideas what might be the problem here?

If you need more details, you can see the code here
https://github.com/maksymko/u-boot/tree/aspeed_ast2500_evb/arch/arm/mach-aspeed

Many thanks for the help!

-- 
Maxim Sloyko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Problem: the build does not recurse into subdirectory
  2016-12-17  0:18 [U-Boot] Problem: the build does not recurse into subdirectory Maxim Sloyko
@ 2016-12-17 22:46 ` Simon Glass
  2016-12-19 17:52   ` Maxim Sloyko
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2016-12-17 22:46 UTC (permalink / raw)
  To: u-boot

Hi Maxim,

On 16 December 2016 at 17:18, Maxim Sloyko <maxims@google.com> wrote:
> Greetings,
>
> I'm working on adding new platform to U-Boot and right now I'm trying
> to clean up the directory structure, but running into a problem of
> Make not recursing into a subdirectory that I've created.
>
> in my arch/arm/mach-aspeed/Makefile I have this:
>
> obj-$(CONFIG_ASPEED_AST2500) += ast2500/ ast2500-board.o
>
> and then in arch/arm/mach-aspeed/ast2500/Makefile:
>
> $obj-y += clk_ast2500.o sdram_ast2500.o

What is the $ for? I don't think you want that.

>
> When I try to build everything, I get this error:
>
> arm-linux-gnueabi-ld.bfd: cannot find
> arch/arm/mach-aspeed/ast2500/built-in.o: No such file or directory
>
> If instead in arch/arm/mach-aspeed/Makefile I specify:
>
> obj-$(CONFIG_ASPEED_AST2500) += ast2500/clk_ast2500.o
> ast2500/sdram_ast2500.o ast2500-board.o
>
> (That is, I just added binaries from the lower level dir explicitly)
>
> everything builds fine, which means that CONFIG_ASPEED_AST2500 is defined.
>
> Any ideas what might be the problem here?
>
> If you need more details, you can see the code here
> https://github.com/maksymko/u-boot/tree/aspeed_ast2500_evb/arch/arm/mach-aspeed
>
> Many thanks for the help!
>
> --
> Maxim Sloyko

Regards,
Simon

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Problem: the build does not recurse into subdirectory
  2016-12-17 22:46 ` Simon Glass
@ 2016-12-19 17:52   ` Maxim Sloyko
  2016-12-20  8:19     ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Sloyko @ 2016-12-19 17:52 UTC (permalink / raw)
  To: u-boot

On Sat, Dec 17, 2016 at 2:46 PM, Simon Glass <sjg@chromium.org> wrote:
> Hi Maxim,
>
> On 16 December 2016 at 17:18, Maxim Sloyko <maxims@google.com> wrote:
>> Greetings,
>>
>> I'm working on adding new platform to U-Boot and right now I'm trying
>> to clean up the directory structure, but running into a problem of
>> Make not recursing into a subdirectory that I've created.
>>
>> in my arch/arm/mach-aspeed/Makefile I have this:
>>
>> obj-$(CONFIG_ASPEED_AST2500) += ast2500/ ast2500-board.o
>>
>> and then in arch/arm/mach-aspeed/ast2500/Makefile:
>>
>> $obj-y += clk_ast2500.o sdram_ast2500.o
>
> What is the $ for? I don't think you want that.

Oh my, I can't believe I was that stupid :)

Thanks for the help, that's what the problem was.

>
>>
>> When I try to build everything, I get this error:
>>
>> arm-linux-gnueabi-ld.bfd: cannot find
>> arch/arm/mach-aspeed/ast2500/built-in.o: No such file or directory
>>
>> If instead in arch/arm/mach-aspeed/Makefile I specify:
>>
>> obj-$(CONFIG_ASPEED_AST2500) += ast2500/clk_ast2500.o
>> ast2500/sdram_ast2500.o ast2500-board.o
>>
>> (That is, I just added binaries from the lower level dir explicitly)
>>
>> everything builds fine, which means that CONFIG_ASPEED_AST2500 is defined.
>>
>> Any ideas what might be the problem here?
>>
>> If you need more details, you can see the code here
>> https://github.com/maksymko/u-boot/tree/aspeed_ast2500_evb/arch/arm/mach-aspeed
>>
>> Many thanks for the help!
>>
>> --
>> Maxim Sloyko
>
> Regards,
> Simon



-- 
Maxim Sloyko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Problem: the build does not recurse into subdirectory
  2016-12-19 17:52   ` Maxim Sloyko
@ 2016-12-20  8:19     ` Simon Glass
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2016-12-20  8:19 UTC (permalink / raw)
  To: u-boot

Hi Maxim,

On 19 December 2016 at 10:52, Maxim Sloyko <maxims@google.com> wrote:
> On Sat, Dec 17, 2016 at 2:46 PM, Simon Glass <sjg@chromium.org> wrote:
>> Hi Maxim,
>>
>> On 16 December 2016 at 17:18, Maxim Sloyko <maxims@google.com> wrote:
>>> Greetings,
>>>
>>> I'm working on adding new platform to U-Boot and right now I'm trying
>>> to clean up the directory structure, but running into a problem of
>>> Make not recursing into a subdirectory that I've created.
>>>
>>> in my arch/arm/mach-aspeed/Makefile I have this:
>>>
>>> obj-$(CONFIG_ASPEED_AST2500) += ast2500/ ast2500-board.o
>>>
>>> and then in arch/arm/mach-aspeed/ast2500/Makefile:
>>>
>>> $obj-y += clk_ast2500.o sdram_ast2500.o
>>
>> What is the $ for? I don't think you want that.
>
> Oh my, I can't believe I was that stupid :)
>
> Thanks for the help, that's what the problem was.
>
>>
>>>
>>> When I try to build everything, I get this error:
>>>
>>> arm-linux-gnueabi-ld.bfd: cannot find
>>> arch/arm/mach-aspeed/ast2500/built-in.o: No such file or directory
>>>
>>> If instead in arch/arm/mach-aspeed/Makefile I specify:
>>>
>>> obj-$(CONFIG_ASPEED_AST2500) += ast2500/clk_ast2500.o
>>> ast2500/sdram_ast2500.o ast2500-board.o
>>>
>>> (That is, I just added binaries from the lower level dir explicitly)
>>>
>>> everything builds fine, which means that CONFIG_ASPEED_AST2500 is defined.
>>>
>>> Any ideas what might be the problem here?
>>>
>>> If you need more details, you can see the code here
>>> https://github.com/maksymko/u-boot/tree/aspeed_ast2500_evb/arch/arm/mach-aspeed
>>>
>>> Many thanks for the help!

OK, good!

- Simon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-20  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-17  0:18 [U-Boot] Problem: the build does not recurse into subdirectory Maxim Sloyko
2016-12-17 22:46 ` Simon Glass
2016-12-19 17:52   ` Maxim Sloyko
2016-12-20  8:19     ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.