From patchwork Fri Oct 25 18:28:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1184394 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TGoHdlhY"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 470CLb0PBGz9s4Y for ; Sat, 26 Oct 2019 05:29:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D413987B07; Fri, 25 Oct 2019 18:29:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ibz3qUZlZ7-Y; Fri, 25 Oct 2019 18:29:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 48BB687B1D; Fri, 25 Oct 2019 18:29:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D60F11BF35A for ; Fri, 25 Oct 2019 18:29:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CD35E868B2 for ; Fri, 25 Oct 2019 18:29:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oYzWu+fs10PE for ; Fri, 25 Oct 2019 18:29:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id D89BC868A8 for ; Fri, 25 Oct 2019 18:29:03 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id q70so2617188qke.12 for ; Fri, 25 Oct 2019 11:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=H0PAj0RU95o6Orffkniquad2yaFasefVRtm6J7KopLo=; b=TGoHdlhY8640y7GP3JHvNS8GKa6DjsjGeiU/h0p2BF4Xw8ixeoc1+ENEUSiCmcZDoX Pj53MnmkdF00Y6Oak80UZ7hk9pY+ZmTJkGTtD3wDu9Fy2twey9dRRP2uCWoPpc1joFXV n8cM1blWXEWAmUt79z+1NWE8JUPr9U94EaSmUb8SvftU1GUNic3LvLCFwtdUt/4lw+CS hX+TYeJXUiGi+QlmmjX+X70pPC6L2l0uRzBDPHDbcxGKr7v5kXUHt0Zc64pXrDAVQ8/W KGQqSzXua9QT70Sg/JDpb12w4KP9XtQhenpdzERjT/EaMj0l5tb9ZYnNvQk25jAzscxK AUgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=H0PAj0RU95o6Orffkniquad2yaFasefVRtm6J7KopLo=; b=JQCk7S9fr8HScRKmNkSnf9r1q9e/Ka/JCUCMkvpY7DUddUG2LQmYHFi/T6XRPd9TTb 9oZFaWIpByNN2V4Gf+Q/1Xb7dLVJ6HGXnVRHuL7JlAlfj2EplWZFMqN8YRBv1RlGinSe CzCnUGcwsFALZ4IGjqsU3ZFmDyexDbMyy86EbpfKqAc+iY8kK11NOSyxjc1hnlK2Gq6a mk9e5bu2U+i/l/zD1AuoaK8x4lIU1URmPtHriNUj3WhHO5mHOIZw3e2/JJ02M0h/Gb1X 40D2gpH7kEYxv9t5v/e6xcKI3lUpx2guoeydoxsewHa0316ARK/LeeboA5h3aJ09gUDj f/GA== X-Gm-Message-State: APjAAAUL80KetPNyW/us80xJIN1XTxWT6fmB024O1kXStMbntLVUKlq6 lYBP2QRA17+nefGEAbcIe9BDex4+ X-Google-Smtp-Source: APXvYqzFkDm9GUiCuA1WwckY6S4LIHFD6k/20drjrbr86pfJ8DzOsl5qtZQcxau050suzJvzdZPv7Q== X-Received: by 2002:a37:99c4:: with SMTP id b187mr4329691qke.332.1572028142575; Fri, 25 Oct 2019 11:29:02 -0700 (PDT) Received: from casantos.remote.csb ([177.134.42.67]) by smtp.gmail.com with ESMTPSA id d2sm1495422qkj.123.2019.10.25.11.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 11:29:01 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Fri, 25 Oct 2019 15:28:52 -0300 Message-Id: <20191025182852.29670-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH] package/qemu: use libusb (for usb passthrough) if it's selected X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos This allows sharing a host USB port with the guest, which is helpful for the upcoming libvirt package. Signed-off-by: Carlos Santos --- package/qemu/qemu.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 3c8b0f43d8..4e39fce8a6 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -97,6 +97,13 @@ else QEMU_OPTS += --disable-libssh2 endif +ifeq ($(BR2_PACKAGE_LIBUSB),y) +QEMU_OPTS += --enable-libusb +QEMU_DEPENDENCIES += libusb +else +QEMU_OPTS += --disable-libusb +endif + ifeq ($(BR2_PACKAGE_NETTLE),y) QEMU_OPTS += --enable-nettle QEMU_DEPENDENCIES += nettle