mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
lib-qemu: support to use qemu-usb w/o webcam
for other VMMs beside Virtualbox, e.g. Seoul or potentially arm/vmm. The webcam model depends on libyuv, which uses stdcxx + full libc, which is not desired or required for all VMM implementations. Fixes #5208
This commit is contained in:
parent
6c9d3326ec
commit
59c42ffb46
@ -1,6 +1,6 @@
|
|||||||
QEMU_CONTRIB_DIR := $(call select_from_ports,qemu-usb)/src/lib/qemu
|
QEMU_CONTRIB_DIR := $(call select_from_ports,qemu-usb)/src/lib/qemu
|
||||||
|
|
||||||
LIB_DIR := $(REP_DIR)/src/lib/qemu-usb
|
LIB_DIR := $(call select_from_repositories,src/lib/qemu-usb)
|
||||||
LIB_INC_DIR := $(LIB_DIR)/include
|
LIB_INC_DIR := $(LIB_DIR)/include
|
||||||
|
|
||||||
#
|
#
|
||||||
|
12
repos/libports/lib/mk/qemu-usb-webcam.inc
Normal file
12
repos/libports/lib/mk/qemu-usb-webcam.inc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
include $(REP_DIR)/lib/mk/qemu-usb.inc
|
||||||
|
|
||||||
|
LIBS += libc
|
||||||
|
LIBS += libyuv
|
||||||
|
LIBS += format
|
||||||
|
|
||||||
|
SRC_CC += webcam.cc
|
||||||
|
SRC_C += dev-webcam.c
|
||||||
|
|
||||||
|
vpath dev-webcam.c $(LIB_DIR)
|
||||||
|
|
||||||
|
SHARED_LIB = yes
|
@ -1,4 +1,4 @@
|
|||||||
LIB_DIR = $(REP_DIR)/src/lib/qemu-usb
|
LIB_DIR = $(call select_from_repositories,src/lib/qemu-usb)
|
||||||
QEMU_USB_DIR := $(call select_from_ports,qemu-usb)/src/lib/qemu/hw/usb
|
QEMU_USB_DIR := $(call select_from_ports,qemu-usb)/src/lib/qemu/hw/usb
|
||||||
|
|
||||||
CC_WARN=
|
CC_WARN=
|
||||||
@ -6,20 +6,13 @@ CC_WARN=
|
|||||||
INC_DIR += $(LIB_DIR) $(QEMU_USB_DIR)
|
INC_DIR += $(LIB_DIR) $(QEMU_USB_DIR)
|
||||||
|
|
||||||
LIBS = qemu-usb_include
|
LIBS = qemu-usb_include
|
||||||
LIBS += libc
|
|
||||||
LIBS += libyuv
|
|
||||||
LIBS += format
|
|
||||||
|
|
||||||
SRC_CC = dummies.cc qemu_emul.cc host.cc webcam.cc
|
SRC_CC += dummies.cc qemu_emul.cc host.cc
|
||||||
|
|
||||||
SRC_C = desc.c hcd-xhci.c hcd-xhci-pci.c core.c bus.c
|
SRC_C += desc.c hcd-xhci.c hcd-xhci-pci.c core.c bus.c
|
||||||
SRC_C += dev-webcam.c
|
|
||||||
|
|
||||||
SHARED_LIB = yes
|
|
||||||
|
|
||||||
LD_OPT += --version-script=$(LIB_DIR)/symbol.map
|
LD_OPT += --version-script=$(LIB_DIR)/symbol.map
|
||||||
|
|
||||||
vpath dev-webcam.c $(LIB_DIR)
|
|
||||||
vpath %.c $(QEMU_USB_DIR)
|
vpath %.c $(QEMU_USB_DIR)
|
||||||
vpath %.cc $(LIB_DIR)
|
vpath %.cc $(LIB_DIR)
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
include $(REP_DIR)/lib/mk/qemu-usb.inc
|
include $(REP_DIR)/lib/mk/qemu-usb-webcam.inc
|
||||||
|
@ -1 +1 @@
|
|||||||
include $(REP_DIR)/lib/mk/qemu-usb.inc
|
include $(REP_DIR)/lib/mk/qemu-usb-webcam.inc
|
||||||
|
@ -43,6 +43,7 @@ MIRROR_FROM_LIBPORTS := lib/mk/libc-mem.mk \
|
|||||||
lib/import/import-qemu-usb_include.mk \
|
lib/import/import-qemu-usb_include.mk \
|
||||||
lib/mk/qemu-usb_include.mk \
|
lib/mk/qemu-usb_include.mk \
|
||||||
lib/mk/qemu-usb.inc \
|
lib/mk/qemu-usb.inc \
|
||||||
|
lib/mk/qemu-usb-webcam.inc \
|
||||||
lib/mk/spec/x86_32/qemu-usb.mk \
|
lib/mk/spec/x86_32/qemu-usb.mk \
|
||||||
lib/mk/spec/x86_64/qemu-usb.mk \
|
lib/mk/spec/x86_64/qemu-usb.mk \
|
||||||
include/qemu \
|
include/qemu \
|
||||||
|
@ -35,6 +35,7 @@ MIRROR_FROM_LIBPORTS := \
|
|||||||
lib/mk/libc-mem.mk \
|
lib/mk/libc-mem.mk \
|
||||||
lib/mk/qemu-usb.inc \
|
lib/mk/qemu-usb.inc \
|
||||||
lib/mk/qemu-usb_include.mk \
|
lib/mk/qemu-usb_include.mk \
|
||||||
|
lib/mk/qemu-usb-webcam.inc \
|
||||||
lib/mk/spec/x86_32/qemu-usb.mk \
|
lib/mk/spec/x86_32/qemu-usb.mk \
|
||||||
lib/mk/spec/x86_64/qemu-usb.mk \
|
lib/mk/spec/x86_64/qemu-usb.mk \
|
||||||
src/lib/libc/internal/init.h \
|
src/lib/libc/internal/init.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user