2014-09-07 11:13:10 -06:00
|
|
|
DRM_GPU_DRIVERS := $(strip $(filter-out swrast, $(BOARD_GPU_DRIVERS)))
|
|
|
|
|
2018-12-17 23:13:53 -07:00
|
|
|
intel_drivers := i915 i965 i915g iris
|
2014-09-07 11:13:10 -06:00
|
|
|
radeon_drivers := r300g r600g radeonsi
|
|
|
|
nouveau_drivers := nouveau
|
2016-02-25 09:41:53 -07:00
|
|
|
virgl_drivers := virgl
|
2014-09-07 11:13:10 -06:00
|
|
|
vmwgfx_drivers := vmwgfx
|
|
|
|
|
|
|
|
valid_drivers := \
|
|
|
|
$(intel_drivers) \
|
|
|
|
$(radeon_drivers) \
|
|
|
|
$(nouveau_drivers) \
|
2016-02-25 09:41:53 -07:00
|
|
|
$(virgl_drivers) \
|
2014-09-07 11:13:10 -06:00
|
|
|
$(vmwgfx_drivers)
|
|
|
|
|
|
|
|
# warn about invalid drivers
|
|
|
|
invalid_drivers := $(filter-out $(valid_drivers), $(DRM_GPU_DRIVERS))
|
|
|
|
ifneq ($(invalid_drivers),)
|
|
|
|
$(warning invalid GPU drivers: $(invalid_drivers))
|
|
|
|
# tidy up
|
|
|
|
DRM_GPU_DRIVERS := $(filter-out $(invalid_drivers), $(DRM_GPU_DRIVERS))
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
include $(LOCAL_PATH)/Makefile.sources
|
|
|
|
|
2017-01-22 09:59:42 -07:00
|
|
|
LOCAL_SRC_FILES := $(LIBKMS_FILES)
|
2014-09-07 11:13:10 -06:00
|
|
|
|
|
|
|
ifneq ($(filter $(vmwgfx_drivers), $(DRM_GPU_DRIVERS)),)
|
|
|
|
LOCAL_SRC_FILES += $(LIBKMS_VMWGFX_FILES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter $(intel_drivers), $(DRM_GPU_DRIVERS)),)
|
|
|
|
LOCAL_SRC_FILES += $(LIBKMS_INTEL_FILES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter $(nouveau_drivers), $(DRM_GPU_DRIVERS)),)
|
|
|
|
LOCAL_SRC_FILES += $(LIBKMS_NOUVEAU_FILES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter $(radeon_drivers), $(DRM_GPU_DRIVERS)),)
|
|
|
|
LOCAL_SRC_FILES += $(LIBKMS_RADEON_FILES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_MODULE := libkms
|
|
|
|
LOCAL_SHARED_LIBRARIES := libdrm
|
|
|
|
|
2017-01-22 09:59:42 -07:00
|
|
|
include $(LIBDRM_COMMON_MK)
|
2014-09-07 11:13:10 -06:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|