From e4bc3e36e455e7fca48ccc5431c6bb83f531fab6 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Thu, 5 Aug 2010 11:29:35 -0400 Subject: tunctl: Added an tunctl which supports TUNSETGROUP TUNSETGROUP is needed in order to preconfigure a set of tap devices that can be used by non-root users. The requirement is that the qemu users be members of whatever group the tap devices are assigned to. Include tunctl in the qemu-helper package, and add a -native version. Signed-off-by: Jeff Dike Signed-off-by: Scott Garman --- meta/packages/qemu/qemu-helper-nativesdk_1.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meta/packages/qemu/qemu-helper-nativesdk_1.0.bb') diff --git a/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb b/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb index a4294ef5cf..a764a0e28a 100644 --- a/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb +++ b/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb @@ -10,13 +10,16 @@ SRC_URI = "file://${POKYBASE}/scripts/poky-qemu \ file://${POKYBASE}/scripts/poky-addptable2image \ file://${POKYBASE}/scripts/poky-qemu-ifup \ file://${POKYBASE}/scripts/poky-qemu-ifdown \ - file://raw2flash.c" + file://tunctl.c \ + file://raw2flash.c \ + " S = "${WORKDIR}" inherit nativesdk do_compile() { + ${CC} tunctl.c -o tunctl ${CC} raw2flash.c -o raw2flash.spitz ${CC} raw2flash.c -o flash2raw.spitz -Dflash2raw } @@ -24,6 +27,7 @@ do_compile() { do_install() { install -d ${D}${bindir} install -m 0755 ${WORKDIR}${POKYBASE}/scripts/poky-* ${D}${bindir}/ + install tunctl ${D}${bindir}/ install raw2flash.spitz ${D}${bindir}/ install flash2raw.spitz ${D}${bindir}/ ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.akita -- cgit v1.2.3-54-g00ecf