package/intel-mediadriver: add option to disable Gen8 support

Add option to disable code for Intel Gen8 GPUs, reduces size of
iHD_drv_video.so from 36M to 33M.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls 2021-12-30 16:34:29 +01:00 committed by Thomas Petazzoni
parent cf13b5b301
commit 6b2f00c943
2 changed files with 16 additions and 0 deletions

View file

@ -18,6 +18,16 @@ config BR2_PACKAGE_INTEL_MEDIADRIVER
https://github.com/intel/media-driver
if BR2_PACKAGE_INTEL_MEDIADRIVER
config BR2_PACKAGE_INTEL_MEDIADRIVER_GEN8
bool "Gen8 support"
default y
help
Enable support for Gen8 GPUs (Coffee Lake)
endif # BR2_PACKAGE_INTEL_MEDIADRIVER
comment "intel-mediadriver needs a toolchain w/ dynamic library, C++, NPTL"
depends on BR2_x86_64 && BR2_TOOLCHAIN_HAS_SYNC_1
depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \

View file

@ -32,4 +32,10 @@ INTEL_MEDIADRIVER_CONF_OPTS = \
-DMEDIA_RUN_TEST_SUITE=OFF \
-DMEDIA_BUILD_HARDENING=OFF
ifeq ($(BR2_PACKAGE_INTEL_MEDIADRIVER_GEN8),y)
INTEL_MEDIADRIVER_CONF_OPTS += -DGEN8=ON
else
INTEL_MEDIADRIVER_CONF_OPTS += -DGEN8=OFF
endif
$(eval $(cmake-package))