Files
compute-runtime/scripts/packaging/ubuntu/debian/rules
Mateusz Jablonski 8f7bacdd95 feature: add eudebug interface class
eudebug interface is now hidden under EuDebugInterface class
shared code uses generic object and param values

layout of structs is guarded by static asserts

eudebug support is guarded by cmake flags:
- NEO_ENABLE_XE_EU_DEBUG_SUPPORT - enables eudebug in general
- NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM - registers exp upstream uAPI support
- NEO_ENABLE_XE_PRELIM_DETECTION - registers prelim uAPI support

This way we can support two different xe-eudebug interfaces within
single binary.

In unit tests there is mock eudebug interface enabled (even if no
eudebug support is enabled by cmake flag).

Related-To: NEO-13472
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-12-13 17:07:12 +01:00

55 lines
2.0 KiB
Makefile
Executable File

#!/usr/bin/make -f
%:
dh $@ --builddir build/ --buildsystem=cmake+ninja
NEO_DISABLE_BUILTINS_COMPILATION ?= FALSE
RELEASE_WITH_REGKEYS ?= FALSE
IGDRCL_FORCE_USE_LIBVA ?= FALSE
NEO_SKIP_UNIT_TESTS ?= FALSE
NEO_SKIP_AUB_TESTS_RUN ?= TRUE
NEO_ENABLE_I915_PRELIM_DETECTION ?= FALSE
NEO_ENABLE_XE_PRELIM_DETECTION ?= FALSE
NEO_ENABLE_XE_EU_DEBUG_SUPPORT ?= FALSE
NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM ?= FALSE
NEO_FORCE_USE_AUB_STREAM ?= TRUE
NEO_BUILD_WITH_L0 ?= TRUE
NEO_LEGACY_PLATFORMS_SUPPORT ?= FALSE
NEO_CURRENT_PLATFORMS_SUPPORT ?= TRUE
NEO_OCLOC_VERSION_MODE ?= 1
override_dh_auto_configure:
dh_auto_configure -- ${NEO_BUILD_EXTRA_OPTS} \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DNEO_OCL_VERSION_MAJOR=${NEO_VERSION_MAJOR} \
-DNEO_OCL_VERSION_MINOR=${NEO_VERSION_MINOR} \
-DNEO_OCLOC_VERSION_MODE=${NEO_OCLOC_VERSION_MODE} \
-DNEO_LEGACY_PLATFORMS_SUPPORT=${NEO_LEGACY_PLATFORMS_SUPPORT} \
-DNEO_CURRENT_PLATFORMS_SUPPORT=${NEO_CURRENT_PLATFORMS_SUPPORT} \
-DNEO_VERSION_BUILD=${NEO_VERSION_BUILD} \
-DNEO_VERSION_HOTFIX=${NEO_VERSION_HOTFIX} \
-DNEO_SKIP_AUB_TESTS_RUN=${NEO_SKIP_AUB_TESTS_RUN} \
-DNEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS} \
-DNEO_ENABLE_I915_PRELIM_DETECTION=${NEO_ENABLE_I915_PRELIM_DETECTION} \
-DNEO_ENABLE_XE_PRELIM_DETECTION=${NEO_ENABLE_XE_PRELIM_DETECTION} \
-DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=${NEO_ENABLE_XE_EU_DEBUG_SUPPORT} \
-DNEO_USE_XE_EU_DEBUG_EXP_UPSTREAM=${NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM} \
-DNEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION} \
-DRELEASE_WITH_REGKEYS=${RELEASE_WITH_REGKEYS} \
-DIGDRCL_FORCE_USE_LIBVA=${IGDRCL_FORCE_USE_LIBVA} \
-DNEO_FORCE_USE_AUB_STREAM=${NEO_FORCE_USE_AUB_STREAM} \
-DBUILD_WITH_L0=${NEO_BUILD_WITH_L0} \
-DL0_INSTALL_UDEV_RULES=1 \
-DUDEV_RULES_DIR=/etc/udev/rules.d/ \
-Wno-dev
override_dh_auto_build:
${BUILD_PREFIX} dh_auto_build
override_dh_install:
dh_install
if [ -d "${NEO_NINJA_DUMP}" ]; then find -name .ninja_\* -type f -exec cp -v {} ${NEO_NINJA_DUMP}/ \;; fi
override_dh_auto_test:
echo "ULTs already executed"