summaryrefslogtreecommitdiffstats
path: root/conf/distro/include/tegra-t18x.conf
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2016-03-10 23:39:46 -0800
committerLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2016-03-22 14:16:00 +0000
commit431c82aefd72d6eb7a73b704bc7c6dadcd9295c5 (patch)
tree7474e42ac03bc705a772a3174c542ff8eef7032a /conf/distro/include/tegra-t18x.conf
parentccec3da8bfeef0e86a153772130212e36f68e8c8 (diff)
downloadmeta-boot2qt-431c82aefd72d6eb7a73b704bc7c6dadcd9295c5.tar.gz
nvidia-t18x support
Steps to use this: Set up vibrante installation, mine looks like this: $ ls -l ~/VibranteSDK total 234880 drwxrwxr-x 1 louai louai 298 Mar 20 2014 eclipse -r-xr-xr-x 1 louai louai 171826846 Jan 4 09:59 NVIDIA_Tegra_Graphics_Debugger_2.1_linux-v4l_l4t-egl.run -r--r--r-- 1 louai louai 68688729 Jan 4 09:59 NVIDIA_Tegra_System_Profiler_2.5-linux-x64.tar.gz drwxr-xr-x 1 louai louai 262 Jan 5 14:50 toolchains drwxrwxr-x 1 louai louai 34 Jan 5 13:55 vibrante-oss-src drwxr-xr-x 1 louai louai 12 Jan 4 09:47 vibrante-t186ref-cuda drwxrwxr-x 1 louai louai 264 Feb 10 10:50 vibrante-t186ref-foundation drwxr-xr-x 1 louai louai 164 Jan 5 14:49 vibrante-t186ref-foundation_src drwxrwxr-x 1 louai louai 228 Jan 5 13:56 vibrante-t186ref-linux drwxr-xr-x 1 louai louai 314 Feb 10 10:58 vibrante-t186ref-linux_sr Set up Yocto build dir: $ mkdir ~/work $ cd ~/work $ ~/tqtc-b2qt/yocto-meta/b2qt-init-build-env init --device tegra-t18x Add NVIDIA's Yocto things: $ mkdir ~/work/sources/nvidia-layer $ cd ~/work/sources/nvidia-layer $ tar xf ~/VibranteSDK/vibrante-t186ref-linux_src/yocto/nvidia-layer.tgz $ cd - Set up build environment: $ export MACHINE=tegra-t18x $ . setup-environment.sh Set the following environment variables: $ export KERN_DIR=~/VibranteSDK/vibrante-t186ref-linux_src/kernel $ export PLATFORM_TOPDIR=~/VibranteSDK/vibrante-t186ref-linux $ export TOOLCHAIN_PATH=~/VibranteSDK/toolchains/tegra-4.9-nv $ export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOOLCHAIN_PATH KERN_DIR PLATFORM_TOPDIR" Add NVLAYER_DIR to local.conf: $ echo 'NVLAYER_DIR = "${TOPDIR}/../sources/nvidia-layer"' >> conf/local.conf Build your image: $ bitbake b2qt-embedded-qt5-image Flash your board: $ cd $PLATFORM_TOPDIR $ mv targetfs targetfs-old $ cd targetfs && tar xf /path/to/rootfs.tar.bz2 $ cd ../../vibrante-t186ref-foundation/utils/scripts/bootburn $ ./bootburn.sh -b p2382-t186 Change-Id: I4209cd0c19a007c4457460fd67342fc579c2a735 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'conf/distro/include/tegra-t18x.conf')
-rw-r--r--conf/distro/include/tegra-t18x.conf67
1 files changed, 67 insertions, 0 deletions
diff --git a/conf/distro/include/tegra-t18x.conf b/conf/distro/include/tegra-t18x.conf
new file mode 100644
index 0000000..12b57d4
--- /dev/null
+++ b/conf/distro/include/tegra-t18x.conf
@@ -0,0 +1,67 @@
1#############################################################################
2##
3## Copyright (C) 2016 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://www.qt.io/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23TARGET_CFLAGS += " -DWIN_INTERFACE_CUSTOM"
24DISTRO_FEATURES_DEFAULT += "wayland weston"
25
26MACHINE_EXTRA_INSTALL = "\
27tegra-firmware-fecs \
28tegra-firmware-gmicrocode \
29tegra-firmware-gpccs \
30tegra-firmware-gpmu \
31tegra-firmware-gshader \
32tegra-firmware-pmu \
33tegra-firmware-prod-fuse \
34tegra-firmware-xusb \
35tegra-firmware-vic \
36tegra-firmware-nvdec \
37tegra-firmware-nvenc \
38tegra-firmware-nvjpeg \
39tegra-drivers \
40virtual/libegl \
41virtual/libgles2 \
42libdrm-nv \
43asound-conf \
44"
45
46PREFERRED_PROVIDER_virtual/libgles2 ?= "tegra-drivers"
47PREFERRED_PROVIDER_virtual/libgles2-dev ?= "tegra-drivers"
48PREFERRED_PROVIDER_virtual/libegl ?= "tegra-drivers"
49PREFERRED_PROVIDER_virtual/libegl-dev ?= "tegra-drivers"
50PREFERRED_PROVIDER_virtual/egl ?= "tegra-drivers"
51
52PREFERRED_PROVIDER_wayland ?= "wayland-nv"
53PREFERRED_PROVIDER_wayland-native ?= "wayland-nv"
54PREFERRED_PROVIDER_nativesdk-wayland ?= "wayland-nv"
55
56BBMASK ?= " "
57BBMASK .= "\
58|meta-vib4/recipes-connectivity/connman\
59|meta-vib4/recipes-core/busybox\
60|meta-vib4/recipes-core/images\
61|meta-vib4/recipes-core/meta\
62|meta-vib4/recipes-core/packagegroups\
63|meta-vib4/recipes-core/systemd/systemd\
64|meta-vib4/recipes-devtools\
65|meta-vib4/recipes-extended\
66|meta-vib4/recipes-multimedia/audiomanager\
67"