genode/repos/libports/lib/mk/libdrm.inc
Josef Söntgen dd90424129 libports: libdrm-2.4.105 update
Support for iris and etnvaviv

* entaviv:
  - libdrm on FreeBSD is not prepared for !PCI (and libc our is missing
    <sys/pciio.h>
  - missing <sys/types.h> include in xf86drmMode.c
  - etnaviv relies on linux header files - dummy in $(INC_DIR)
  - IOCTL FreeBSD ↔ Linux have swapped IO/OUT bit
  - O_CLOEXEC differs between FreeBSD ↔ Linux

issue 
2021-08-30 15:00:38 +02:00

34 lines
706 B
PHP

LIB_DIR := $(REP_DIR)/src/lib/libdrm
# include before to shadow libdrm_macros.h
INC_DIR += $(LIB_DIR)/include
LIBDRM_PORT_DIR := $(call select_from_ports,libdrm)/src/lib/libdrm
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
CC_OPT = -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 -DHAVE_SYS_SYSCTL_H=1
#
# 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)
CC_CXX_WARN_STRICE :=