2021-07-05 15:44:45 +00:00
|
|
|
LIB_DIR := $(REP_DIR)/src/lib/libdrm
|
|
|
|
|
|
|
|
# include before to shadow libdrm_macros.h
|
|
|
|
INC_DIR += $(LIB_DIR)/include
|
2022-07-15 14:44:15 +00:00
|
|
|
INC_DIR += $(REP_DIR)/src/lib/libdrm
|
2021-07-05 15:44:45 +00:00
|
|
|
|
|
|
|
LIBDRM_PORT_DIR := $(call select_from_ports,libdrm)/src/lib/libdrm
|
|
|
|
|
2022-07-15 14:44:15 +00:00
|
|
|
REP_INC_DIR += include/libdrm
|
2021-07-05 15:44:45 +00:00
|
|
|
REP_INC_DIR += include/drm
|
|
|
|
|
|
|
|
LIBS := libc
|
|
|
|
SHARED_LIB := yes
|
|
|
|
|
|
|
|
SRC_C := xf86drm.c \
|
|
|
|
xf86drmHash.c \
|
|
|
|
xf86drmMode.c \
|
|
|
|
xf86drmRandom.c \
|
|
|
|
xf86drmSL.c
|
|
|
|
|
|
|
|
SRC_C += dummies.c
|
|
|
|
|
2024-04-13 19:10:14 +00:00
|
|
|
CC_OPT = -D__GENODE__ -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 -DHAVE_SYS_SYSCTL_H=1
|
2021-07-05 15:44:45 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# We rename 'ioctl' calls to 'genode_ioctl' calls, this way we are not required
|
|
|
|
# to write a libc plugin for libdrm.
|
|
|
|
#
|
|
|
|
CC_C_OPT += -Dioctl=genode_ioctl
|
|
|
|
|
|
|
|
vpath %.c $(LIBDRM_PORT_DIR)
|
|
|
|
vpath %.c $(LIB_DIR)
|
|
|
|
vpath %.cc $(LIB_DIR)
|
|
|
|
|
2021-12-06 14:34:55 +00:00
|
|
|
CC_CXX_WARN_STRICT_CONVERSION =
|