kumquat-buildroot/board/qemu
Romain Naour 575493c186 board/qemu: add post-image script for gitlab qemu testing
This commit add a post-image script to be used by each qemu board
defconfig in order to generate start-qemu.sh in BINARIES_DIR. The
start-qemu.sh script can be used by Buildroot user to start Qemu
or by a gitlab CI.

To find the correct qemu command line, we use the second post script
argument which must contain "$(BR2_DEFCONFIG)"

    BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"

The post-image script expect something like
"/path/to/qemu_aarch64_virt_defconfig" in BR2_DEFCONFIG.

Doing a basename allow to retrieve the name of the defconfig file that
should match on on the "tag" previously introduced in readme.txt files.

For running in the CI, as well as running from a remote machine (e.g. on
a remote build machine), it is better not to start in graphical mode,
but only with the serial line attached to the terminal. The post-build
script prepares two sets of arguments for each case, graphical or
serial, and stores them in the start-qemu.sh script, which then decodes
which to use, based on an argument on the command line (default is still
graphical)

sh4/sh4eb needs a special handling by adding "-serial stdio -display
none"; others only require "-nographics". Some qemu command lines
already contain "-serial stdio", but that does not play nicely with
"-nographics", we remove that when going serial-only (although this
might seem counter-intuitive).

Finally, we ensure the script uses our qemu-system (if it was built).

Signed-off-by: Romain Naour <romain.naour@smile.fr>
[yann.morin.1998@free.fr:
  - drop the knowledge about gitlab-ci, replace with an argument to
    pass to start-qemu.sh
  - adapt the commit log accordingly
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-04-13 21:51:12 +02:00
..
aarch64-virt board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
arm-versatile board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
arm-vexpress board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
arm-vexpress-tz
csky board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
m68k-mcf5208 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
m68k-q800 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
microblazebe-mmu board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
microblazeel-mmu board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips32r2-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips32r2el-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips32r6-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips32r6el-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips64-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips64el-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips64r6-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
mips64r6el-malta board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
nios2-10m50 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
or1k board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc64-e5500 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc64-pseries board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc64le-pseries board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc-g3beige board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc-mac99 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc-mpc8544ds board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
ppc-virtex-ml507 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
riscv32-virt board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
riscv64-virt board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
sh4-r2d board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
sh4eb-r2d board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
sparc64-sun4u board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
sparc-ss10 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
x86 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
x86_64 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
xtensa-lx60 board/qemu: add defconfig file name as tag after the qemu command line 2020-04-13 21:51:12 +02:00
post-image.sh board/qemu: add post-image script for gitlab qemu testing 2020-04-13 21:51:12 +02:00