2019-02-05 19:19:43 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# intel-mediadriver
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# based on https://software.intel.com/en-us/articles/build-and-debug-open-source-media-stack
|
|
|
|
|
2022-01-22 16:32:07 +01:00
|
|
|
INTEL_MEDIADRIVER_VERSION = 22.1.1
|
2019-02-05 19:19:43 +01:00
|
|
|
INTEL_MEDIADRIVER_SITE = http://github.com/intel/media-driver/archive
|
|
|
|
INTEL_MEDIADRIVER_SOURCE= intel-media-$(INTEL_MEDIADRIVER_VERSION).tar.gz
|
|
|
|
INTEL_MEDIADRIVER_LICENSE = MIT, BSD-3-Clause
|
|
|
|
INTEL_MEDIADRIVER_LICENSE_FILES = LICENSE.md
|
|
|
|
|
|
|
|
INTEL_MEDIADRIVER_DEPENDENCIES = \
|
|
|
|
intel-gmmlib \
|
|
|
|
libpciaccess \
|
|
|
|
libva \
|
2021-06-30 17:24:57 +02:00
|
|
|
mesa3d
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
|
|
|
INTEL_MEDIADRIVER_DEPENDENCIES += xlib_libX11
|
|
|
|
endif
|
2019-02-05 19:19:43 +01:00
|
|
|
|
|
|
|
INTEL_MEDIADRIVER_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
2021-10-03 11:12:43 +02:00
|
|
|
# hardening is disabled here, so that the top-level Buildroot options
|
|
|
|
# control which hardening features are enabled
|
2019-02-05 19:19:43 +01:00
|
|
|
INTEL_MEDIADRIVER_CONF_OPTS = \
|
2021-01-31 14:32:00 +01:00
|
|
|
-DINSTALL_DRIVER_SYSCONF=OFF \
|
2021-06-05 17:15:09 +02:00
|
|
|
-DMEDIA_BUILD_FATAL_WARNINGS=OFF \
|
2021-10-03 11:12:43 +02:00
|
|
|
-DMEDIA_RUN_TEST_SUITE=OFF \
|
|
|
|
-DMEDIA_BUILD_HARDENING=OFF
|
2019-02-05 19:19:43 +01:00
|
|
|
|
2021-12-30 16:34:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_INTEL_MEDIADRIVER_GEN8),y)
|
|
|
|
INTEL_MEDIADRIVER_CONF_OPTS += -DGEN8=ON
|
|
|
|
else
|
|
|
|
INTEL_MEDIADRIVER_CONF_OPTS += -DGEN8=OFF
|
|
|
|
endif
|
|
|
|
|
2019-02-05 19:19:43 +01:00
|
|
|
$(eval $(cmake-package))
|