All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] logo part Makefile doesn't work as expected
@ 2014-03-03  9:09 Bo Shen
  2014-03-03  9:47 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Bo Shen @ 2014-03-03  9:09 UTC (permalink / raw)
  To: u-boot

Hi Masahiro Yamada,
   Today, I tested with u-boot master branch, I found the u-boot logo is 
not set as we expected. The following line's do not executed as 
expected, as the BOARD and VENDOR parameter value is not passed to 
<tools/Makefile>. So, if not define LOGO_BMP, it always take the first 
value.
   I try some method to fix it, it works, however I am not familiar with 
whole build system, so can you help to fix it? Thanks.

--->8---
# Generic logo
ifeq ($(LOGO_BMP),)
LOGO_BMP= $(srctree)/$(src)/logos/denx.bmp

# Use board logo and fallback to vendor
ifneq ($(wildcard logos/$(BOARD).bmp),)
LOGO_BMP= $(srctree)/$(src)/logos/$(BOARD).bmp
else
ifneq ($(wildcard logos/$(VENDOR).bmp),)
LOGO_BMP= $(srctree)/$(src)/logos/$(VENDOR).bmp
endif
endif
---8<---

Best Regards,
Bo Shen

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

* [U-Boot] logo part Makefile doesn't work as expected
  2014-03-03  9:09 [U-Boot] logo part Makefile doesn't work as expected Bo Shen
@ 2014-03-03  9:47 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2014-03-03  9:47 UTC (permalink / raw)
  To: u-boot

Hello Bo,

On Mon, 3 Mar 2014 17:09:03 +0800
Bo Shen <voice.shen@atmel.com> wrote:

> Hi Masahiro Yamada,
>    Today, I tested with u-boot master branch, I found the u-boot logo is not set as we expected. The following line's do not executed as expected, as the BOARD and VENDOR parameter value is not passed to <tools/Makefile>. So, if not define LOGO_BMP, it always take the first value.
>    I try some method to fix it, it works, however I am not familiar with whole build system, so can you help to fix it? Thanks.
> 
> --->8---
> # Generic logo
> ifeq ($(LOGO_BMP),)
> LOGO_BMP= $(srctree)/$(src)/logos/denx.bmp
> 
> # Use board logo and fallback to vendor
> ifneq ($(wildcard logos/$(BOARD).bmp),)
> LOGO_BMP= $(srctree)/$(src)/logos/$(BOARD).bmp
> else
> ifneq ($(wildcard logos/$(VENDOR).bmp),)
> LOGO_BMP= $(srctree)/$(src)/logos/$(VENDOR).bmp
> endif
> endif
> ---8<---

Sorry.
As you say, this is a bug introduced by Kbuild series.

BOARD and VENDOR parameter value is passed
to <tools/Makefile>, but $(wildcard ...) was not described
correctly.

I have posted a patch with your Reported-by credit.

Thanks for your reporting!

Best Regards
Masahiro Yamada

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

end of thread, other threads:[~2014-03-03  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03  9:09 [U-Boot] logo part Makefile doesn't work as expected Bo Shen
2014-03-03  9:47 ` Masahiro Yamada

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.