Move feature code into the meta recipes
[AGL/meta-agl.git] / meta-agl-bsp / conf / include / agl_porter.inc
1
2 # For running GStreamer on wayland (experimental).
3 #
4 # Uncoment below if want to use multimedia acceleration on wayland
5 #
6 IMAGE_INSTALL_append_porter = " \
7     gstreamer1.0-plugins-bad-waylandsink \
8     "
9
10 # Additional plugins to test multimedia acceleration (experimental)
11 #
12 # Uncoment below if want to use multimedia acceleration
13 #
14 IMAGE_INSTALL_append_porter = " \
15     gstreamer1.0-plugins-base-videorate \
16     gstreamer1.0-plugins-base-videotestsrc \
17     gstreamer1.0-plugins-base-audiotestsrc \
18     gstreamer1.0-plugins-base-alsa \
19     gstreamer1.0-plugins-good-autodetect \
20     gstreamer1.0-plugins-good-isomp4 \
21     gstreamer1.0-plugins-good-videocrop \
22     gstreamer1.0-plugins-bad-asfmux \
23     gstreamer1.0-plugins-bad-fbdevsink \
24     gstreamer1.0-plugins-bad-faad \
25     gstreamer1.0-plugins-bad-videoparsersbad \
26 "
27 #    gstreamer1.0-plugins-good-video4linux2  (temp disabled)
28
29 # for graphics acceleration
30 #
31 # Uncoment below if want to use multimedia acceleration
32 #
33 IMAGE_INSTALL_append_porter = " \
34     libegl libegl-dev libgbm-dev \
35     gles-kernel-module gles-user-module \
36     libdrm-tests \
37    libdrm-kms \
38     "
39
40 # for multimedia acceleration
41 #
42 # Uncoment below if want to use multimedia acceleration
43 #
44 IMAGE_INSTALL_append_porter = " \
45     packagegroup-rcar-gen2-multimedia \
46     packagegroup-lcb-oss-codecs \
47     alsa-utils alsa-utils-config alsa-tools \
48 "
49
50 IMAGE_INSTALL_append_porter = " \
51     gles-kernel-module \
52     libegl \
53     libgbm-dev \
54     "
55
56 # For Bluetooth hardware support
57 BT_KERNEL_MODULES = " \
58     kernel-module-btusb \
59     kernel-module-bnep \
60     kernel-module-rfcomm \
61     kernel-module-rfkill \
62     "
63
64 # Distribution-specific runtime components
65 IMAGE_INSTALL_append = " \
66     ${@bb.utils.contains("DISTRO_FEATURES", "bluetooth", "${BT_KERNEL_MODULES}", "", d)} \
67     "
68
69 # TODO: When booting weston, someone try to load 'libgbm_kms.so' then
70 # fail to boot. It should be 'libgbm_kms.so.1'.
71 # Tentatively, it is to install 'libgbm-dev' pkg.
72 #IMAGE_INSTALL_append = "libgbm-dev"
73 # this is not recommended and should be done in the recipe requiring this module (gles-user-module)
74
75 LICENSE_FLAGS_WHITELIST = "commercial"
76
77 # Define the name of multimedia, dtv, graphic test, multimedia-test for bbmask
78 BB_MULTIMEDIA_KERNEL_MODULE = "fdpm-kernel-module|mmngr-kernel-module|mmngrbuf-kernel-module|s3ctl-kernel-module|uvcs-kernel-module|vspm-kernel-module"
79 BB_MULTIMEDIA_USER_MODULE = "fdpm-user-module|mmngr-user-module|mmngrbuf-user-module|omx-user-module|s3ctl-user-module|vspm-user-module|libmemcpy"
80 BB_MULTIMEDIA_TEST_MODULE = "fdpm-tp-user-module|mmngr-tp-user-module|mmngrbuf-tp-user-module|s3ctl-tp-user-module|vspm-tp-user-module"
81
82 BB_GST_PLUGINS = "meta-renesas/meta-rcar-gen2/recipes-multimedia/gstreamer"
83 MULTIMEDIA_BB = "${BB_MULTIMEDIA_KERNEL_MODULE}|${BB_MULTIMEDIA_USER_MODULE}|\
84                  ${BB_MULTIMEDIA_TEST_MODULE}|${BB_GST_PLUGINS}"
85
86 # Enable Multimedia standard pkg
87 MACHINE_FEATURES_append = " multimedia"
88
89 # UnMask the multimedia kernel modules
90 #BBMASK .= "|${BB_MULTIMEDIA_KERNEL_MODULE}"
91
92 # UnMask the multimedia user modules
93 #BBMASK .= "|${BB_MULTIMEDIA_USER_MODULE}"
94
95 # Include static library in SDK
96 SDKIMAGE_FEATURES_append = " staticdev-pkgs"
97
98 # Mask the DTV pkgs
99 #MACHINE_FEATURES_append = " dtv"
100 BBMASK = "dtv-module|ssp-module|scu-module"
101
102 # Enable graphic pkgs
103 #BBMASK .= "|gles-kernel-module|gles-user-module"
104
105 # Mask the multimedia-test
106 BBMASK .= "|${BB_MULTIMEDIA_TEST_MODULE}"
107
108 # Mask the graphic test
109 BBMASK .= "|gles-test-module"
110
111 #DISTRO_FEATURES_append = " mm-test"
112 #DISTRO_FEATURES_append = " gles-test"
113
114 # Enable Gfx Pkgs
115 MACHINE_FEATURES_append = " sgx"
116 MULTI_PROVIDER_WHITELIST += "virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2"
117
118 # for Wayland/Weston
119
120 PREFERRED_PROVIDER_virtual/libgles1 = ""
121 PREFERRED_PROVIDER_virtual/libgles2 = "gles-user-module"
122 PREFERRED_PROVIDER_virtual/egl = "libegl"
123 PREFERRED_PROVIDER_virtual/libgl = ""
124 PREFERRED_PROVIDER_virtual/mesa = "mesa"
125 PREFERRED_PROVIDER_libgbm = "libgbm"
126 PREFERRED_RPROVIDER_libgbm-dev = "libgbm"
127
128 # Setting for u-boot Wayland
129 UBOOT_MACHINE = "porter_vin_config"
130
131 # Addtional Configurations of Optional OMX modules
132
133 # OMX Media Component H263 Decoder Library
134 #DISTRO_FEATURES_append = " h263dec_lib"
135 # OMX Media Component VC-1 Decoder Library
136 #DISTRO_FEATURES_append = " vc1dec_lib"
137 # OMX Media Component MPEG-4 Decoder Library
138 #DISTRO_FEATURES_append = " mpeg4dec_lib"
139 # VCP3 Driver Adapted for Linux MPEG-2 Decoder Library
140 #DISTRO_FEATURES_append = " mpeg2dec_lib"
141 # DivX Decoder Library for Linux
142 #DISTRO_FEATURES_append = " divxdec_lib"
143 # Encoder Library for Linux
144 DISTRO_FEATURES_append = " h264avcenc_lib"
145
146 # Configurations of Optional Audio Decoders
147 # ARM 5.1ch aacPlus V2 Decoder for Linux
148 #DISTRO_FEATURES_append = " aacp2dec_lib"
149 # ARM MP3 Decoder for Linux
150 #DISTRO_FEATURES_append = " mp3dec_lib"
151 # ARM WMA Decoder for Linux
152 #DISTRO_FEATURES_append = " wmadec_lib"
153 # ARM 5.1ch Dolby Digital Decoder for Linux
154 #DISTRO_FEATURES_append = " ddddec_lib"
155 # ARM ALAC Decoder for Linux
156 #DISTRO_FEATURES_append = " alacdec_lib"
157 # ARM FLAC Decoder for Linux
158 #DISTRO_FEATURES_append = " flacdec_lib"
159 # ARM AAC-LC Decoder Library Sample for Linux
160 #DISTRO_FEATURES_append = " aaclcsdec_lib"
161 # ARM AAC Encoder for Linux
162 #DISTRO_FEATURES_append = " aacenc_lib"
163
164 # Configurations of Optional Audio Middlewares
165 # ARM 5.1ch aacPlus V2 Decode Middleware for Linux
166 #DISTRO_FEATURES_append = " armaccp2dec_mdw"
167 # ARM MP3 Decode Middleware for Linux
168 #DISTRO_FEATURES_append = " mp3dec_mdw"
169 # ARM WMA Decode Middleware for Linux
170 #DISTRO_FEATURES_append = " wmadec_mdw"
171 # ARM 5.1ch Dolby Digital Decode Middleware for Linux
172 #DISTRO_FEATURES_append = " ddddec_mdw"
173 # ARM ALAC Decode Middleware for Linux
174 #DISTRO_FEATURES_append = " alacdec_mdw"
175 # ARM FLAC Decode Middleware for Linux
176 #DISTRO_FEATURES_append = " flacdec_mdw"
177 # ARM AAC Decode Middleware Sample for Linux
178 #DISTRO_FEATURES_append = " aacsdec_mdw"
179 # ARM AAC Encode Middleware for Linux
180 #DISTRO_FEATURES_append = " aacenc_mdw"
181
182 # Commit united image to OSTree, not just uImage
183 OSTREE_KERNEL = "uImage+dtb"
184
185 # OTA-enabled live image
186 IMAGE_CLASSES_append_sota = " image_types_uboot sdcard_image-porter-ota"
187 IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'agl-ota', 'porter-sdimg-ota  ', '', d)}"
188