@@ -46,23 +46,25 @@ RUN set -x \
46
46
&& cd *linux-kernel-* \
47
47
&& zcat ../*-to-*.diff.gz | patch -p1 \
48
48
&& patch -p1 < $TIZEN_SDK_ROOT/files/0001-smack-add-permissive-mode.patch \
49
- # Compile
49
+ # Configure
50
50
&& export MAKEFLAGS=-j$(nproc) \
51
51
&& export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- \
52
52
&& make tizen_bcm2711_defconfig \
53
- && ./scripts/config -e ARCH_VIRT \
54
- && ./scripts/config -e VIRTIO_MMIO -e HW_RANDOM_VIRTIO \
53
+ # Add support for QEMU VirtIO devices
54
+ && ./scripts/config -e ARCH_VIRT -e VIRTIO_MMIO \
55
55
&& ./scripts/config -e VIRTIO_PCI -e VIRTIO_BLK \
56
56
&& ./scripts/config -e VIRTIO_NET -e VETH \
57
- && ./scripts/config -e IKCONFIG -e IKCONFIG_PROC \
57
+ && ./scripts/config -e HW_RANDOM_VIRTIO \
58
+ # Use ARM PL031 RTC and synchronize time during boot
59
+ && ./scripts/config -e RTC_DRV_PL031 -e RTC_HCTOSYS \
60
+ # Enable vHCI driver to add support for Bluetooth virtualization
58
61
&& ./scripts/config -e BT_HCIVHCI -e CRYPTO_USER_API_HASH -e CRYPTO_USER_API_SKCIPHER \
59
- && ./scripts/config -e OVERLAY_FS \
60
- && ./scripts/config -e SECURITY_SMACK_PERMISSIVE_MODE \
61
- && ./scripts/config -e NET_9P -e NET_9P_VIRTIO \
62
- && ./scripts/config -e INET \
63
- && ./scripts/config -e 9P_FS -e 9P_FS_POSIX_ACL \
64
- && ./scripts/config -e PCI_HOST_GENERIC \
62
+ # Enable overlay FS and disable SMACK to workaround permission issues
63
+ && ./scripts/config -e OVERLAY_FS -e SECURITY_SMACK_PERMISSIVE_MODE \
64
+ # Enable 9P filesystem support to share files between host and guest
65
+ && ./scripts/config -e INET -e PCI_HOST_GENERIC -e NET_9P -e NET_9P_VIRTIO -e 9P_FS \
65
66
&& make olddefconfig \
67
+ # Compile
66
68
&& make -j$(nproc) zImage \
67
69
&& mv arch/arm/boot/zImage $TIZEN_IOT_QEMU_KERNEL \
68
70
# Cleanup
0 commit comments