mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Commit "ARM: Turn most board directories into regular build directories" break kwb images
@ 2013-08-06  9:49 Thomas Petazzoni
  2013-08-06 11:50 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2013-08-06  9:49 UTC (permalink / raw)
  To: barebox

Hello Sascha,

Your commit 6bbb24cf8d0b0a060c57d9c07610210cdf2dcc96 ('ARM: Turn most
board directories into regular build directories') apparently breaks
the build of kwbimage for Marvell EBU platforms.

The kwbimage is built as follows:

KWBIMAGE_OPTS = \
        -c -i $(srctree)/$(BOARD)/kwbimage.cfg -d $(TEXT_BASE) -e $(TEXT_BASE)

quiet_cmd_kwbimage = KWB     $@
      cmd_kwbimage = scripts/kwbimage -p $< $(KWBIMAGE_OPTS) -o $@ || \
        echo "WARNING: Couldn't create KWB image due to previous errors."

quiet_cmd_kwbimage_uart = KWBUART $@
      cmd_kwbimage_uart = scripts/kwbimage -m uart -p $< $(KWBIMAGE_OPTS) -o $@ || \
        echo "WARNING Couldn't create KWB image due to previous errors."

so we rely on the $(BOARD) variable to contain
arch/arm/boards/<theboard>/. Unfortunately, with your commit, this is
no longer the case.

Your commit made the assumption that only those boards that have a
config.h should stay in board-y, but the Marvell EBU boards should also
stay in board-y, or another solution needs to be found.

I've temporarily worked around the problem by re-adding:

+board-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG)      += globalscale-guruplug

into arch/arm/Makefile.

Since I haven't yet grasped the entire philosophy of the Barebox build
system, I'm not sure what the correct fix is.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: Commit "ARM: Turn most board directories into regular build directories" break kwb images
  2013-08-06  9:49 Commit "ARM: Turn most board directories into regular build directories" break kwb images Thomas Petazzoni
@ 2013-08-06 11:50 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-08-06 11:50 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: barebox

Hi Thomas,

On Tue, Aug 06, 2013 at 11:49:45AM +0200, Thomas Petazzoni wrote:
> Hello Sascha,
> 
> Your commit 6bbb24cf8d0b0a060c57d9c07610210cdf2dcc96 ('ARM: Turn most
> board directories into regular build directories') apparently breaks
> the build of kwbimage for Marvell EBU platforms.
> 
> The kwbimage is built as follows:
> 
> KWBIMAGE_OPTS = \
>         -c -i $(srctree)/$(BOARD)/kwbimage.cfg -d $(TEXT_BASE) -e $(TEXT_BASE)
> 
> quiet_cmd_kwbimage = KWB     $@
>       cmd_kwbimage = scripts/kwbimage -p $< $(KWBIMAGE_OPTS) -o $@ || \
>         echo "WARNING: Couldn't create KWB image due to previous errors."
> 
> quiet_cmd_kwbimage_uart = KWBUART $@
>       cmd_kwbimage_uart = scripts/kwbimage -m uart -p $< $(KWBIMAGE_OPTS) -o $@ || \
>         echo "WARNING Couldn't create KWB image due to previous errors."
> 
> so we rely on the $(BOARD) variable to contain
> arch/arm/boards/<theboard>/. Unfortunately, with your commit, this is
> no longer the case.
> 
> Your commit made the assumption that only those boards that have a
> config.h should stay in board-y, but the Marvell EBU boards should also
> stay in board-y, or another solution needs to be found.
> 
> I've temporarily worked around the problem by re-adding:
> 
> +board-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG)      += globalscale-guruplug
> 
> into arch/arm/Makefile.
> 
> Since I haven't yet grasped the entire philosophy of the Barebox build
> system, I'm not sure what the correct fix is.

The best fix for this would be to switch the mvebu boards over to
multiboard support. I already created an initial patch for the cubox,
but got distracted somewhere in between.

However, I think for now we should just partly revert 6bbb24cf8d0b0a06
for mvebu.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-08-06 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-06  9:49 Commit "ARM: Turn most board directories into regular build directories" break kwb images Thomas Petazzoni
2013-08-06 11:50 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox