kumquat-buildroot/board
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-efi
acmesystems configs/acmesystems_arietta_g25: bump Linux and AT91Bootstrap versions 2019-08-11 21:58:05 +02:00
altera/socrates_cyclone5
amarula configs/amarula_vyasa_rk3288: adjust U-Boot config to boot larger kernel image 2019-04-21 12:18:00 +02:00
andes configs/andes_ae3xx: new defconfig 2019-04-17 09:20:55 +02:00
arcturus configs/arcturus_ucp1020: bump Linux and U-Boot 2019-06-23 17:26:55 +02:00
arm
armadeus board/armadeus: replace utf-8 graphic sympols by ascii characters 2019-05-18 23:34:18 +02:00
asus/tinker
atmel board/atmel: genimage: remove display variant dtbs 2019-08-01 20:23:25 +02:00
avnet/s6lx9_microboard
bananapi
beagleboardx15 configs/beagleboardx15: drop custom post-image script 2019-10-27 12:20:43 +01:00
beaglebone configs/beaglebone_qt5: don't use custom post-image script 2019-12-30 14:46:42 +01:00
beagleboneai configs/beagleboneai: new defconfig 2019-09-25 22:59:32 +02:00
beelink/gs1 configs/beelink_gs1: bump to U-Boot 2020.01 2020-04-12 23:08:22 +02:00
boundarydevices/common configs/nitrogen8mm: Add new defconfig 2020-03-29 16:31:11 +02:00
chromebook/snow
ci20 board/ci20/genimage.cfg: drop hardcoded rootfs partition size 2020-01-22 20:50:02 +01:00
csky configs/csky_gx6605s: bump kernel to 5.0 and use buildroot toolchain 2019-08-02 23:42:51 +02:00
cubietech/cubieboard2
embest/riotboard
engicam board/icorem6: fix the Qt5 display name 2019-12-26 20:38:43 +01:00
firefly/roc-rk3399-pc configs/roc_rk3399_pc: new defconfig 2020-03-29 15:09:48 +02:00
freescale configs/freescale_imx6{dl,q,sx}*: bump BSP components to 4.19.35_1.1.0 2020-03-26 23:09:42 +01:00
friendlyarm configs/friendlyarm_nanopi_neo_plus2: use an extlinux instead of boot.cmd 2019-12-10 09:02:25 +01:00
grinn board/chiliboard: drop custom post-image script 2020-03-20 22:35:48 +01:00
hardkernel
intel/galileo
lego/ev3
lemaker/bananapro board/lemaker/bananapro: fix wlan module 2020-02-04 19:27:48 +01:00
librecomputer/lafrite configs/lafrite: new defconfig 2019-09-15 16:00:56 +02:00
licheepi
linksprite/pcduino
minnowboard configs/minnowboard_max: drop custom post-image script 2019-10-27 12:21:22 +01:00
nexbox/a95x
olimex configs/olimex_a33_olinuxino: new defconfig 2019-08-03 08:28:35 +02:00
openblocks/a6
orangepi config: add defconfig for orangepi-r1 2019-05-05 21:12:04 +02:00
pandaboard configs/pandaboard: drop custom post-image script 2019-10-27 12:21:29 +01:00
pc board/pc/post-build.sh: fix typo in grub boot.img path 2019-12-16 11:01:49 +01:00
pine64 configs/pine64_rockpro64: remove defconfig 2019-09-01 11:36:49 +02:00
qemu board/qemu: add post-image script for gitlab qemu testing 2020-04-13 21:51:12 +02:00
raspberrypi configs/raspberrypi4_64: new defconfig 2019-12-08 21:49:08 +01:00
roseapplepi configs/roseapplepi: drop custom post-image script 2019-10-27 12:22:14 +01:00
sheevaplug
sifive/hifive-unleashed configs/hifive_unleashed: new defconfig 2019-08-03 10:31:55 +02:00
sinovoip/m2-plus
solidrun board/solidrun/mx6cubox: create boot.scr in TARGET_DIR/boot 2020-04-13 21:46:23 +02:00
stmicroelectronics board/stmicroelectronics/stm32f4xx: move post-build script into common directory 2020-03-21 15:27:17 +01:00
synopsys
technexion configs/imx7dpico: Bump U-Boot to 2019.07 and kernel to version 5.1.16. 2019-07-09 20:04:58 +02:00
technologic configs/ts4800: remove defconfig 2019-09-01 11:36:28 +02:00
toradex/apalis-imx6
udoo board/udoo/neo: create boot.scr in TARGET_DIR/boot 2020-04-13 21:49:13 +02:00
wandboard board/wandboard/post-build.sh: create boot.scr at TARGET_DIR/boot 2020-04-13 21:45:21 +02:00
warp7 configs/warp7: Bump kernel and U-Boot versions 2019-07-14 11:57:39 +02:00
zynq
zynqmp
raspberrypi0
raspberrypi0w
raspberrypi2
raspberrypi3
raspberrypi3-64
raspberrypi4 board/raspberrypi: add support for the new pi4 2019-08-03 11:06:44 +02:00
raspberrypi4-64 configs/raspberrypi4_64: new defconfig 2019-12-08 21:49:08 +01:00