From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXqTf-0001QJ-8z for qemu-devel@nongnu.org; Tue, 17 Mar 2015 08:20:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXqTY-0003S7-N9 for qemu-devel@nongnu.org; Tue, 17 Mar 2015 08:20:07 -0400 Message-ID: <1426594797.27188.103.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Tue, 17 Mar 2015 13:19:57 +0100 In-Reply-To: <1426593930.27188.96.camel@nilsson.home.kraxel.org> References: <1426311215-12764-1-git-send-email-thuth@linux.vnet.ibm.com> <1426593930.27188.96.camel@nilsson.home.kraxel.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/usb: Include USB files only if necessary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Di, 2015-03-17 at 13:05 +0100, Gerd Hoffmann wrote: > On Sa, 2015-03-14 at 06:33 +0100, Thomas Huth wrote: > > Boards that do not include an USB controller should not provide > > USB devices. However, when running "qemu-system-s390x -device help" > > for example, there's still a usb-hub, usb-kbd, usb-mouse and > > usb-tablet in the list of "supported" devices. Let's fix that > > by compiling and linking the USB files only if it's really > > necessary. > > Added to usb queue. Removed, fails to build. Needs a complete rebuild due to the new CONFIG_USB option. Hardly avoidable I guess. But even with that done I still get this: LINK lm32-softmmu/qemu-system-lm32 ../hw/usb/redirect.o: In function `usbredir_bulk_packet': /home/kraxel/projects/qemu/hw/usb/redirect.c:1978: undefined reference to `usb_combined_input_packet_complete' ../hw/usb/redirect.o: In function `usbredir_flush_ep_queue': /home/kraxel/projects/qemu/hw/usb/redirect.c:951: undefined reference to `usb_ep_combine_input_packets' ../hw/usb/redirect.o: In function `usbredir_cancel_packet': /home/kraxel/projects/qemu/hw/usb/redirect.c:367: undefined reference to `usb_combined_packet_cancel' ../hw/usb/host-libusb.o: In function `usb_host_cancel_packet': /home/kraxel/projects/qemu/hw/usb/host-libusb.c:1014: undefined reference to `usb_combined_packet_cancel' ../hw/usb/host-libusb.o: In function `usb_host_req_complete_data': /home/kraxel/projects/qemu/hw/usb/host-libusb.c:396: undefined reference to `usb_combined_input_packet_complete' ../hw/usb/host-libusb.o: In function `usb_host_flush_ep_queue': /home/kraxel/projects/qemu/hw/usb/host-libusb.c:1358: undefined reference to `usb_ep_combine_input_packets' collect2: error: ld returned 1 exit status cheers, Gerd