diff options
| author | Jörg Sommer <joerg.sommer@navimatix.de> | 2024-08-29 20:33:45 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-10-18 06:04:41 -0700 |
| commit | f43ef3aa9225073d5d88368cbcba3b12fee8ee8f (patch) | |
| tree | be8a35ca963b075268e4365156c522b0d83641f3 /scripts | |
| parent | 008e269c6b7f84a7b925e60a7b0cb0d851f70e17 (diff) | |
| download | poky-f43ef3aa9225073d5d88368cbcba3b12fee8ee8f.tar.gz | |
runqemu: Fix detection of -serial parameter
The pattern `-serial` matches also `-device usb-serial` and `virtio-serial`
which are not the desired parameter. This causes the serial console ttyS1 is
missing and Systemd's getty@ttyS1 fails constantly.
(From OE-Core rev: 44c1f003d617ac20527926b4b321ffd1fe4462bb)
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b6d035894120b45b42f146ab5b3110522c58d178)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/runqemu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index fe395d1bc6..2ab36fd03d 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -1487,7 +1487,7 @@ to your build configuration. | |||
| 1487 | # If no serial or serialtcp options were specified, only ttyS0 is created | 1487 | # If no serial or serialtcp options were specified, only ttyS0 is created |
| 1488 | # and sysvinit shows an error trying to enable ttyS1: | 1488 | # and sysvinit shows an error trying to enable ttyS1: |
| 1489 | # INIT: Id "S1" respawning too fast: disabled for 5 minutes | 1489 | # INIT: Id "S1" respawning too fast: disabled for 5 minutes |
| 1490 | serial_num = len(re.findall("-serial", self.qemu_opt)) | 1490 | serial_num = len(re.findall("(^| )-serial ", self.qemu_opt)) |
| 1491 | 1491 | ||
| 1492 | # Assume if the user passed serial options, they know what they want | 1492 | # Assume if the user passed serial options, they know what they want |
| 1493 | # and pad to two devices | 1493 | # and pad to two devices |
| @@ -1507,7 +1507,7 @@ to your build configuration. | |||
| 1507 | 1507 | ||
| 1508 | self.qemu_opt += " %s" % self.get("QB_SERIAL_OPT") | 1508 | self.qemu_opt += " %s" % self.get("QB_SERIAL_OPT") |
| 1509 | 1509 | ||
| 1510 | serial_num = len(re.findall("-serial", self.qemu_opt)) | 1510 | serial_num = len(re.findall("(^| )-serial ", self.qemu_opt)) |
| 1511 | if serial_num < 2: | 1511 | if serial_num < 2: |
| 1512 | self.qemu_opt += " -serial null" | 1512 | self.qemu_opt += " -serial null" |
| 1513 | 1513 | ||
