1 SUMMARY = "Setting files for QEMU networking for guest VMs"
3 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5 inherit systemd allarch
7 SRC_URI = "file://vmnet0.netdev \
8 file://vmnet0.network \
10 file://dnsmasq-qemu.conf \
11 file://connman-nodnsproxy.conf \
14 do_configure[noexec] = "1"
15 do_compile[noexec] = "1"
18 # Install systemd-networkd vmnet0 configuration
19 install -d ${D}${systemd_unitdir}/network
20 install -m 0644 ${WORKDIR}/vmnet0.netdev ${D}${systemd_unitdir}/network/
21 install -m 0644 ${WORKDIR}/vmnet0.network ${D}${systemd_unitdir}/network/
23 # Install QEMU bridge configuration
24 install -d ${D}${sysconfdir}/qemu
25 install -m 0644 ${WORKDIR}/bridge.conf ${D}${sysconfdir}/qemu/
27 # Configure dnsmasq to serve DHCP to the guests
28 install -d ${D}${sysconfdir}/dnsmasq.d
29 install -m 0644 ${WORKDIR}/dnsmasq-qemu.conf ${D}${sysconfdir}/dnsmasq.d/
31 # Disable ConnMan's local DNS proxy to not conflict with dnsmasq
32 install -d ${D}${systemd_system_unitdir}/connman.service.d/
33 install -m 0644 ${WORKDIR}/connman-nodnsproxy.conf ${D}${systemd_system_unitdir}/connman.service.d/
36 FILES:${PN} += "${systemd_unitdir}/network ${systemd_system_unitdir}"
38 RDEPENDS:${PN} += "agl-qemu-runner dnsmasq connman"