diff options
author | Jörg Sommer <joerg.sommer@navimatix.de> | 2024-08-29 20:33:45 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-30 21:59:38 +0100 |
commit | 4b60e8690c258eb748e5ae8936d4d2c1ee5efe1f (patch) | |
tree | 256931d61e8a4213eb4631d0e6149fbca608dcc6 /scripts/runqemu | |
parent | 9ec017b0fda465cde08a1098afa977e8c5006f5e (diff) | |
download | poky-4b60e8690c258eb748e5ae8936d4d2c1ee5efe1f.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: b6d035894120b45b42f146ab5b3110522c58d178)
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 69cd44864e..f350021258 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1483,7 +1483,7 @@ to your build configuration. | |||
1483 | # If no serial or serialtcp options were specified, only ttyS0 is created | 1483 | # If no serial or serialtcp options were specified, only ttyS0 is created |
1484 | # and sysvinit shows an error trying to enable ttyS1: | 1484 | # and sysvinit shows an error trying to enable ttyS1: |
1485 | # INIT: Id "S1" respawning too fast: disabled for 5 minutes | 1485 | # INIT: Id "S1" respawning too fast: disabled for 5 minutes |
1486 | serial_num = len(re.findall("-serial", self.qemu_opt)) | 1486 | serial_num = len(re.findall("(^| )-serial ", self.qemu_opt)) |
1487 | 1487 | ||
1488 | # Assume if the user passed serial options, they know what they want | 1488 | # Assume if the user passed serial options, they know what they want |
1489 | # and pad to two devices | 1489 | # and pad to two devices |
@@ -1503,7 +1503,7 @@ to your build configuration. | |||
1503 | 1503 | ||
1504 | self.qemu_opt += " %s" % self.get("QB_SERIAL_OPT") | 1504 | self.qemu_opt += " %s" % self.get("QB_SERIAL_OPT") |
1505 | 1505 | ||
1506 | serial_num = len(re.findall("-serial", self.qemu_opt)) | 1506 | serial_num = len(re.findall("(^| )-serial ", self.qemu_opt)) |
1507 | if serial_num < 2: | 1507 | if serial_num < 2: |
1508 | self.qemu_opt += " -serial null" | 1508 | self.qemu_opt += " -serial null" |
1509 | 1509 | ||