mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
Qemu supports attaching the virtual machine to an existing network bridge interface via the qemu-bridge-helper program (as long as the system is correctly configured to give the user permissions). Add support for runqemu to do this also via the "bridge=<INTERFACE>" argument. Note that for this to work correctly, the host qemu-bridge-helper must be used, not the one that might have been built by qemu-native. In order for qemu to correctly find this program, a qemu-oe-bridge-helper program has been added to qemu-helper-native, and runqemu will use this helper as the bridge helper. The helper will look for the host qemu-bridge-helper first by looking in the QEMU_BRIDGE_HELPER environment variable, then by search common paths where the helper is installed. (From OE-Core rev: 9e7b38c61c6b84b7f137c733ac5da9414025693d) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
649 B
BlitzBasic
30 lines
649 B
BlitzBasic
SUMMARY = "Helper utilities needed by the runqemu script"
|
|
LICENSE = "GPLv2"
|
|
RDEPENDS_${PN} = "qemu-system-native"
|
|
PR = "r1"
|
|
|
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
|
|
|
|
SRC_URI = "\
|
|
file://tunctl.c \
|
|
file://qemu-oe-bridge-helper \
|
|
"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
inherit native
|
|
|
|
do_compile() {
|
|
${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${bindir}
|
|
install tunctl ${D}${bindir}/
|
|
|
|
install -m 755 ${WORKDIR}/qemu-oe-bridge-helper ${D}${bindir}/
|
|
}
|
|
|
|
DEPENDS += "qemu-system-native"
|
|
addtask addto_recipe_sysroot after do_populate_sysroot before do_build
|