Thread (26 messages) read the whole thread 26 messages, 4 authors, 2020-02-16

[Buildroot] [PATCH v4 6/9] board/qemu: add post-image script for gitlab qemu testing

From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: 2020-02-10 14:41:33

Hello,

On Mon, 10 Feb 2020 14:47:59 +0100
Romain Naour [off-list ref] wrote:
quoted
Why is this script copied a zillion times? This looks like a
maintenance nightmare. Why not put it in board/qemu/, and have a single
script used by all configurations ?  
I'm not sure if we should share the same post-image script for several boards.
Why so? We already do that for NXP platforms for example.
It's not clear how we should maintain theses scripts in board directory.

For example for genimage (post-image.sh) :
board/lego/ev3/post-image.sh
board/grinn/liteboard/post-image.sh
board/nexbox/a95x/post-image.sh

This is the same script.
Maybe we need something board/common/post-image.sh ?

For Qemu board, maybe add the script in board/qemu/common/post-image.sh.
Yes, or just board/qemu/post-image.sh is sufficient.
There is also a special case for sh4, so I'll add a second script to add
"-serial stdio -display none" instead of "-display none"
No, just make a small condition in your script:

case ${defconfig} in
	qemu_sh4_defconfig)
		do something here
		;;
esac

and that's it.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help