diff options
Diffstat (limited to 'conf/distro/include/rcar-gen2.inc')
-rw-r--r-- | conf/distro/include/rcar-gen2.inc | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/conf/distro/include/rcar-gen2.inc b/conf/distro/include/rcar-gen2.inc new file mode 100644 index 0000000..9b638c3 --- /dev/null +++ b/conf/distro/include/rcar-gen2.inc | |||
@@ -0,0 +1,140 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | # To build for the rcar devices you must install the binary gpu drivers as | ||
31 | # follows. These are made available under the name R-Car Series Evaluation | ||
32 | # Software Package for Linux at the following address: | ||
33 | # | ||
34 | # http://www.renesas.com/secret/r_car_download/rcar_demoboard.jsp | ||
35 | # | ||
36 | # You need two files named as follows: | ||
37 | # - R-Car_Series_Evaluation_Software_Package_for_Linux-<yyyymmdd>.zip | ||
38 | # - R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-<yyyymmdd>.zip | ||
39 | # | ||
40 | # You can place them in any location, below ~/Downloads is assumed. Now do | ||
41 | # the following: | ||
42 | # | ||
43 | # $ mkdir build && cd build | ||
44 | # $ export MACHINE=YourMachineHere | ||
45 | # $ ~/meta-boot2qt/b2qt-init-build-env init --device $MACHINE | ||
46 | # $ cd sources/meta-renesas | ||
47 | # $ ./meta-rcar-gen2/docs/sample/copyscript/copy_eva_sw_pkgs.sh ~/Downloads | ||
48 | # | ||
49 | # The script takes as the sole argument the location of the two zips. You must | ||
50 | # be in the right directory when you call the script! | ||
51 | # | ||
52 | # You can now build as usual: | ||
53 | # $ cd ../.. | ||
54 | # $ . setup-environment.sh | ||
55 | # $ bitbake b2qt-embedded-image | ||
56 | # | ||
57 | |||
58 | # internal copy of R-Car_Series_Evaluation_Software_Packages used for CI | ||
59 | FILESEXTRAPATHS_append = "${BSPDIR}/sources/renesas-rcar-gen2/${PN}:" | ||
60 | |||
61 | KERNEL_MODULE_AUTOLOAD += " \ | ||
62 | phy-rcar-gen2-usb \ | ||
63 | hid_multitouch \ | ||
64 | renesas_usbhs \ | ||
65 | " | ||
66 | |||
67 | GLES_DRIVER = "sgx" | ||
68 | GLES_DRIVER_r8a7790 = "rgx" | ||
69 | |||
70 | DISTRO_FEATURES += "wayland bluetooth bluez5 h264avcenc_lib" | ||
71 | MACHINE_FEATURES += "multimedia ${GLES_DRIVER}" | ||
72 | |||
73 | IMAGE_FSTYPES += "ext3 sdcard" | ||
74 | IMAGE_CLASSES += "image_types_fsl" | ||
75 | |||
76 | PREFERRED_VERSION_gstreamer1.0-libav = "1.2.3" | ||
77 | |||
78 | PREFERRED_PROVIDER_virtual/libgles2 = "gles-user-module" | ||
79 | PREFERRED_PROVIDER_virtual/egl = "libegl" | ||
80 | PREFERRED_PROVIDER_libgbm = "libgbm" | ||
81 | PREFERRED_PROVIDER_libgbm-dev = "libgbm-dev" | ||
82 | |||
83 | MULTIMEDIA_PACKAGES = " \ | ||
84 | gstreamer1.0-plugins-base-videorate \ | ||
85 | gstreamer1.0-plugins-base-videotestsrc \ | ||
86 | gstreamer1.0-plugins-base-audiotestsrc \ | ||
87 | gstreamer1.0-plugins-base-alsa \ | ||
88 | gstreamer1.0-plugins-good-autodetect \ | ||
89 | gstreamer1.0-plugins-good-isomp4 \ | ||
90 | gstreamer1.0-plugins-good-video4linux2 \ | ||
91 | gstreamer1.0-plugins-good-videocrop \ | ||
92 | gstreamer1.0-plugins-bad-asfmux \ | ||
93 | gstreamer1.0-plugins-bad-fbdevsink \ | ||
94 | gstreamer1.0-plugins-bad-faad \ | ||
95 | gstreamer1.0-plugins-bad-videoparsersbad \ | ||
96 | packagegroup-rcar-gen2-multimedia \ | ||
97 | " | ||
98 | |||
99 | # Unfortunately several Renesas components suffer from various issues requiring workarounds | ||
100 | # libgbm-dev is required as some part of the binary driver stack attempts to dlopen an unversioned so | ||
101 | # bash is required as it is hardcoded in a system setup script | ||
102 | # libdrm-tests appears to be required (to be confirmed?) | ||
103 | RENESAS_WORKAROUNGS = " \ | ||
104 | libgbm-dev \ | ||
105 | bash \ | ||
106 | libdrm-tests \ | ||
107 | " | ||
108 | |||
109 | MACHINE_EXTRA_INSTALL += " \ | ||
110 | kernel-devicetree \ | ||
111 | libdrm-kms \ | ||
112 | libegl \ | ||
113 | gles-kernel-module \ | ||
114 | gles-user-module \ | ||
115 | ${RENESAS_WORKAROUNGS} \ | ||
116 | ${@base_contains("MACHINE_FEATURES", "multimedia", "${MULTIMEDIA_PACKAGES}", "", d)} \ | ||
117 | " | ||
118 | |||
119 | MACHINE_EXTRA_INSTALL_append_lcb = " \ | ||
120 | can-utils \ | ||
121 | libsocketcan \ | ||
122 | ${@base_contains("MACHINE_FEATURES", "multimedia", "packagegroup-lcb-oss-codecs", "", d)} \ | ||
123 | " | ||
124 | |||
125 | BB_MULTIMEDIA_TEST_MODULE = "\ | ||
126 | |fdpm-tp-user-module\ | ||
127 | |mmngr-tp-user-module\ | ||
128 | |mmngrbuf-tp-user-module\ | ||
129 | |s3ctl-tp-user-module\ | ||
130 | |vspm-tp-user-module\ | ||
131 | " | ||
132 | |||
133 | BBMASK ?= " " | ||
134 | BBMASK .= "\ | ||
135 | ${BB_MULTIMEDIA_TEST_MODULE}\ | ||
136 | |dtv-module|ssp-module|scu-module\ | ||
137 | |gles-test-module\ | ||
138 | |poky/meta/recipes-graphics/mesa\ | ||
139 | |meta-fsl-arm/recipes-graphics/mesa\ | ||
140 | " | ||