| Summary: | no start-qemu.sh | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Andrei Cherniaev <glscene2010> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WONTFIX | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | Keywords: | FIXME |
| Version: | 2022.11 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Qemu | Target: | |
| Build: | Ubuntu 22 X86_64 | ||
| Attachments: | usage: make BR2_EXTERNAL=/mnt/ramdisk/my_external_tree -C buildroot my_qemu_x86_defconfig | ||
|
Description
Andrei Cherniaev
2023-01-22 13:54:33 UTC
There is interesting code in file buildroot/board/qemu/post-image.sh
# Search for "# qemu_*_defconfig" tag in all readme.txt files.
# Qemu command line on multilines using back slash are accepted.
QEMU_CMD_LINE=$(sed -r ':a; /\\$/N; s/\\\n//; s/\t/ /; ta; /# '${DEFCONFIG_NAME}'$/!d; s/#.*//' ${README_FILES})
This script search "qemu_..._defconfig" in readme.txt files. Looks very bad idea... May be buildroot project should use runqemu python script from yocto
https://docs.yoctoproject.org/dev-manual/qemu.html#qemu-command-line-syntax
?
runqemu script use .conf files, for example qemux86.conf file https://github.com/yoctoproject/poky/blob/master/meta/conf/machine/qemux86.conf
Thanks for your report, but I'm afraid there is no bug in what you're reporting: - We definitely need some sort of hint that tells us whether a start-qemu.sh script should be produced or not, and we have chosen this hint to be "the defconfig starts with qemu_". This is certainly an arbitrary choice, but we anyway had to make an arbitrary choice. In addition, this generation of start-qemu.sh script is really an "internal" Buildroot feature to help users use our stock qemu_*_defconfig. For your own defconfigs, you can provide your own start-qemu.sh script. - The fact that .br2-external files are preserved on make clean is normal, just like we preserve your .config file. This way, you can restart a build with the same configuration/BR2_EXTERNAL after a "make clean". This is the intended behavior. |