mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 23:12:24 +00:00
dd90424129
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 #4254
34 lines
706 B
PHP
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 :=
|