Blame view

buildroot/buildroot-2016.08.1/package/libdrm/libdrm.mk 2.45 KB
6b13f685e   김민수   BSP 최초 추가
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
103
104
105
106
107
108
109
110
  ################################################################################
  #
  # libdrm
  #
  ################################################################################
  
  LIBDRM_VERSION = 2.4.70
  LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
  LIBDRM_SITE = http://dri.freedesktop.org/libdrm
  LIBDRM_LICENSE = MIT
  
  LIBDRM_INSTALL_STAGING = YES
  
  LIBDRM_DEPENDENCIES = \
  	libpthread-stubs \
  	host-pkgconf
  
  LIBDRM_CONF_OPTS = \
  	--disable-cairo-tests \
  	--disable-manpages
  
  LIBDRM_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
  
  ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
  LIBDRM_DEPENDENCIES += libatomic_ops
  ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
  LIBDRM_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9"
  endif
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
  LIBDRM_CONF_OPTS += --enable-intel
  LIBDRM_DEPENDENCIES += libpciaccess
  else
  LIBDRM_CONF_OPTS += --disable-intel
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
  LIBDRM_CONF_OPTS += --enable-radeon
  else
  LIBDRM_CONF_OPTS += --disable-radeon
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU),y)
  LIBDRM_CONF_OPTS += --enable-amdgpu
  else
  LIBDRM_CONF_OPTS += --disable-amdgpu
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
  LIBDRM_CONF_OPTS += --enable-nouveau
  else
  LIBDRM_CONF_OPTS += --disable-nouveau
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
  LIBDRM_CONF_OPTS += --enable-vmwgfx
  else
  LIBDRM_CONF_OPTS += --disable-vmwgfx
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
  LIBDRM_CONF_OPTS += --enable-omap-experimental-api
  else
  LIBDRM_CONF_OPTS += --disable-omap-experimental-api
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
  LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
  else
  LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
  LIBDRM_CONF_OPTS += --enable-freedreno
  else
  LIBDRM_CONF_OPTS += --disable-freedreno
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
  LIBDRM_CONF_OPTS += --enable-tegra-experimental-api
  else
  LIBDRM_CONF_OPTS += --disable-tegra-experimental-api
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_VC4),y)
  LIBDRM_CONF_OPTS += --enable-vc4
  else
  LIBDRM_CONF_OPTS += --disable-vc4
  endif
  
  ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
  LIBDRM_CONF_OPTS += --enable-udev
  LIBDRM_DEPENDENCIES += udev
  else
  LIBDRM_CONF_OPTS += --disable-udev
  endif
  
  ifeq ($(BR2_PACKAGE_VALGRIND),y)
  LIBDRM_CONF_OPTS += --enable-valgrind
  LIBDRM_DEPENDENCIES += valgrind
  else
  LIBDRM_CONF_OPTS += --disable-valgrind
  endif
  
  ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
  LIBDRM_CONF_OPTS += --enable-install-test-programs
  endif
  
  $(eval $(autotools-package))