summaryrefslogtreecommitdiffstats
path: root/rules/intel-gpu-tools.make
blob: 0e5de7f6bbee0cc2914d9b5bdf5c92e445b0bcfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# -*-makefile-*-
#
# Copyright (C) 2016 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_ARCH_X86)-$(PTXCONF_INTEL_GPU_TOOLS) += intel-gpu-tools

#
# Paths and names
#
INTEL_GPU_TOOLS_VERSION	:= 1.16
INTEL_GPU_TOOLS_MD5	:= 95ae60c2c0e56736273edc406f8277c8
INTEL_GPU_TOOLS		:= intel-gpu-tools-$(INTEL_GPU_TOOLS_VERSION)
INTEL_GPU_TOOLS_SUFFIX	:= tar.bz2
INTEL_GPU_TOOLS_URL	:= $(call ptx/mirror, XORG, app/$(INTEL_GPU_TOOLS).$(INTEL_GPU_TOOLS_SUFFIX))
INTEL_GPU_TOOLS_SOURCE	:= $(SRCDIR)/$(INTEL_GPU_TOOLS).$(INTEL_GPU_TOOLS_SUFFIX)
INTEL_GPU_TOOLS_DIR	:= $(BUILDDIR)/$(INTEL_GPU_TOOLS)
INTEL_GPU_TOOLS_LICENSE	:= MIT

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
INTEL_GPU_TOOLS_CONF_TOOL	:= autoconf
INTEL_GPU_TOOLS_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-gtk-doc \
	--disable-gtk-doc-html \
	--disable-gtk-doc-pdf \
	--disable-selective-werror \
	--disable-strict-compilation \
	--enable-intel \
	--disable-nouveau \
	--disable-vc4 \
	--disable-shader-debugger \
	--disable-debug \
	--disable-werror \
	--disable-git-hash \
	--disable-tests \
	--without-libunwind

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

INTEL_GPU_TOOLS_APPS := \
	igt_stats \
	intel_aubdump \
	intel_audio_dump \
	intel_backlight \
	intel_bios_dumper \
	intel_bios_reader \
	intel_display_crc \
	intel_display_poller \
	intel_dump_decode \
	intel_error_decode \
	intel_firmware_decode \
	intel_forcewaked \
	intel_gpu_abrt \
	intel_gpu_frequency \
	intel_gpu_time \
	intel_gpu_top \
	intel_gtt \
	intel_infoframes \
	intel_l3_parity \
	intel_lid \
	intel_opregion_decode \
	intel_panel_fitter \
	intel_perf_counters \
	intel_reg \
	intel_reg_checker \
	intel_stepping \
	intel_watermark

$(STATEDIR)/intel-gpu-tools.targetinstall:
	@$(call targetinfo)

	@$(call install_init, intel-gpu-tools)
	@$(call install_fixup, intel-gpu-tools,PRIORITY,optional)
	@$(call install_fixup, intel-gpu-tools,SECTION,base)
	@$(call install_fixup, intel-gpu-tools,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
	@$(call install_fixup, intel-gpu-tools,DESCRIPTION,missing)

	@$(foreach app, $(INTEL_GPU_TOOLS_APPS), \
		$(call install_copy, intel-gpu-tools, 0, 0, 0755, -, /usr/bin/$(app));)

	@$(call install_finish, intel-gpu-tools)

	@$(call touch)

# vim: syntax=make