2016-10-20 11:48:44 +00:00
|
|
|
LIBUSB_DIR := $(call select_from_ports,libusb)/src/lib/libusb
|
2020-07-23 13:14:54 +00:00
|
|
|
LIBS += libc
|
2016-10-20 11:48:44 +00:00
|
|
|
|
|
|
|
# find 'config.h'
|
|
|
|
INC_DIR += $(REP_DIR)/src/lib/libusb
|
|
|
|
|
|
|
|
INC_DIR += $(LIBUSB_DIR)/libusb
|
|
|
|
|
2021-01-26 17:26:00 +00:00
|
|
|
# internal/thread_create.h for Libc::pthread_create
|
|
|
|
INC_DIR += $(call select_from_repositories,src/lib/libc)
|
|
|
|
|
2016-10-20 11:48:44 +00:00
|
|
|
SRC_C = core.c \
|
|
|
|
descriptor.c \
|
|
|
|
io.c \
|
|
|
|
strerror.c \
|
|
|
|
sync.c \
|
|
|
|
hotplug.c \
|
|
|
|
os/poll_posix.c \
|
|
|
|
os/threads_posix.c
|
|
|
|
|
|
|
|
SRC_CC = genode_usb_raw.cc
|
|
|
|
|
|
|
|
vpath %.c $(LIBUSB_DIR)/libusb
|
|
|
|
vpath %.cc $(REP_DIR)/src/lib/libusb
|
|
|
|
|
|
|
|
SHARED_LIB = yes
|
2018-01-03 17:40:54 +00:00
|
|
|
|
|
|
|
CC_CXX_WARN_STRICT =
|