mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
tools/Android.mk: Fix compile error in intel_reg.c
The patch "tools: install the register definition files" caused a build error on android as it added 'PKGDATADIR' which was not defined in the Android build environment. This patch adds that define to tools/Android.mk. It also copies the files it points to so they are actually in the target file system. v2: Added local variable for tool path Signed-off-by: Derek Morton <derek.j.morton@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
3546514791
commit
bcd3e1f33f
@ -2,6 +2,8 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
|
|
||||||
include $(LOCAL_PATH)/Makefile.sources
|
include $(LOCAL_PATH)/Makefile.sources
|
||||||
|
|
||||||
|
LOCAL_TOOLS_DIR := intel/validation/core/igt/tools
|
||||||
|
|
||||||
#================#
|
#================#
|
||||||
|
|
||||||
define add_tool
|
define add_tool
|
||||||
@ -34,11 +36,21 @@ define add_tool
|
|||||||
libdrm \
|
libdrm \
|
||||||
libdrm_intel
|
libdrm_intel
|
||||||
|
|
||||||
|
# Tools dir on host
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/$(LOCAL_TOOLS_DIR)
|
||||||
|
# Tools dir on target.
|
||||||
|
LOCAL_CFLAGS += -DPKGDATADIR=\"/system/vendor/$(LOCAL_TOOLS_DIR)\"
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
include $(BUILD_EXECUTABLE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#================#
|
#================#
|
||||||
|
|
||||||
|
# Copy the register files
|
||||||
|
$(shell mkdir -p $(TARGET_OUT_VENDOR)/$(LOCAL_TOOLS_DIR)/registers)
|
||||||
|
$(shell cp $(LOCAL_PATH)/registers/* $(TARGET_OUT_VENDOR)/$(LOCAL_TOOLS_DIR)/registers)
|
||||||
|
|
||||||
|
|
||||||
skip_tools_list := \
|
skip_tools_list := \
|
||||||
intel_framebuffer_dump \
|
intel_framebuffer_dump \
|
||||||
intel_reg_dumper \
|
intel_reg_dumper \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user