Skip to content

Commit 8b2c12f

Browse files
committed
fix(kernel): Enable SCSI_VIRTIO for QEMU
Make sure mainline kernels with defconfig + config fragments boot under QEMU for tests or the reference run-qemu script. Fixes: #180. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
1 parent f87cc7b commit 8b2c12f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
libdw-dev libelf-dev libssl-dev libssl-dev:arm64 dpkg-dev \
6666
debhelper-compat kmod python3 rsync coreutils
6767
scripts/build-linux-deb.sh \
68+
kernel-configs/qemu-boot.config \
6869
kernel-configs/qcom-imsdk.config \
6970
kernel-configs/systemd-boot.config
7071

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To build flashable assets for all supported boards, follow these steps:
7272

7373
1. (optional) build a local Linux kernel deb from mainline with a recommended config fragment
7474
```bash
75-
scripts/build-linux-deb.sh kernel-configs/qcom-imsdk.config kernel-configs/systemd-boot.config
75+
scripts/build-linux-deb.sh kernel-configs/qemu-boot.config kernel-configs/qcom-imsdk.config kernel-configs/systemd-boot.config
7676
```
7777

7878
1. build tarballs of the root filesystem and DTBs

kernel-configs/qemu-boot.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CONFIG_SCSI_VIRTIO is not enabled in the upstream defconfig but it is needed
2+
# when running qemu with such a backend, e.g. for testing or for the run-qemu
3+
# script
4+
CONFIG_SCSI_VIRTIO=m

0 commit comments

Comments
 (0)