diff options
author | Teemu Holappa <teemu.holappa@theqtcompany.com> | 2016-04-13 15:47:51 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2016-05-05 08:16:14 +0000 |
commit | 86ce53afdeb5fbf863100231b83521bf34375930 (patch) | |
tree | 2926e8631c2197bdcb10a35c0d31cf5c4e078945 /conf/distro | |
parent | 5800a3bfe48a2092ac3b8cf250f04840a6397f3f (diff) | |
download | meta-boot2qt-86ce53afdeb5fbf863100231b83521bf34375930.tar.gz |
Fix to NVidia's tegra configurations.
Changed both nvidia-logan and tegra-t18x to use the same metalayer from the Vibrante 4.0 SDK.
Kernel sources and libraries are stored into the internal CI repository.
These definitions can be overridden by SDK folder using following environment variables:
export KERN_DIR=~/Vibrante4.0_RC1/vibrante-t186ref-linux_src/kernel
export PLATFORM_TOPDIR=~/Vibrante4.0_RC1/vibrante-t186ref-linux
export TOOLCHAIN_PATH=~/Vibrante4.0_RC1/toolchains/tegra-4.9-nv
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOOLCHAIN_PATH KERN_DIR PLATFORM_TOPDIR"
Change-Id: If58a0fcbe01daa9a55dd041b79a9d80a90fde284
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'conf/distro')
-rw-r--r-- | conf/distro/include/nvidia-logan.conf | 22 | ||||
-rw-r--r-- | conf/distro/include/tegra-t18x.conf | 50 | ||||
-rw-r--r-- | conf/distro/include/tegra.inc | 17 |
3 files changed, 69 insertions, 20 deletions
diff --git a/conf/distro/include/nvidia-logan.conf b/conf/distro/include/nvidia-logan.conf index 21dd305..5849cfd 100644 --- a/conf/distro/include/nvidia-logan.conf +++ b/conf/distro/include/nvidia-logan.conf | |||
@@ -19,7 +19,13 @@ | |||
19 | ## | 19 | ## |
20 | ############################################################################## | 20 | ############################################################################## |
21 | 21 | ||
22 | DISTRO_FEATURES_remove += "wayland" | 22 | TARGET_CFLAGS += " -DWIN_INTERFACE_CUSTOM" |
23 | |||
24 | DEFAULTTUNE = "cortexa15hf-neon" | ||
25 | |||
26 | KERN_DIR ?= '${@os.path.normpath("${TOPDIR}/../sources/jetson-tk1-pro/vibrante-vcm30t124-linux")}' | ||
27 | PLATFORM_TOPDIR ?= '${@os.path.normpath("${TOPDIR}/../sources/jetson-tk1-pro/vibrante-vcm30t124-linux")}' | ||
28 | NVLAYER_DIR ?= "${TOPDIR}/../sources/nvidia-layer" | ||
23 | 29 | ||
24 | MACHINE_EXTRA_INSTALL = "\ | 30 | MACHINE_EXTRA_INSTALL = "\ |
25 | libegl \ | 31 | libegl \ |
@@ -36,3 +42,17 @@ MACHINE_EXTRA_INSTALL_SDK = "\ | |||
36 | libdrm-nv-dev \ | 42 | libdrm-nv-dev \ |
37 | " | 43 | " |
38 | 44 | ||
45 | PREFERRED_PROVIDER_libdrm ?= "libdrm-nv" | ||
46 | PREFERRED_PROVIDER_drm ?= "libdrm-nv" | ||
47 | |||
48 | BBMASK ?= " " | ||
49 | BBMASK .= "\ | ||
50 | |meta-vib3/recipes-kernel/linux-libc-headers\ | ||
51 | |meta-vib3/recipes-devtools/binutils\ | ||
52 | |meta-vib3/recipes-core/eglibc\ | ||
53 | |meta-vib3/recipes-core/systemd\ | ||
54 | |meta-vib3/recipes-connectivity\ | ||
55 | |meta-vib3/recipes-multimedia/pulseaudio\ | ||
56 | |meta-vib3/recipes-core/meta/external-tegra-toolchain.bb\ | ||
57 | |meta-vib3/recipes-core/packagegroups\ | ||
58 | " | ||
diff --git a/conf/distro/include/tegra-t18x.conf b/conf/distro/include/tegra-t18x.conf index 12b57d4..baf7f5c 100644 --- a/conf/distro/include/tegra-t18x.conf +++ b/conf/distro/include/tegra-t18x.conf | |||
@@ -20,34 +20,43 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | include conf/distro/include/tegra.inc | ||
24 | |||
23 | TARGET_CFLAGS += " -DWIN_INTERFACE_CUSTOM" | 25 | TARGET_CFLAGS += " -DWIN_INTERFACE_CUSTOM" |
24 | DISTRO_FEATURES_DEFAULT += "wayland weston" | 26 | DISTRO_FEATURES_DEFAULT += "wayland" |
27 | |||
28 | KERN_DIR ?= '${@os.path.normpath("${TOPDIR}/../sources/vibrante-t186/kernel")}' | ||
29 | PLATFORM_TOPDIR ?= '${@os.path.normpath("${TOPDIR}/../sources/vibrante-t186/vibrante-t186ref-linux")}' | ||
30 | NVLAYER_DIR ?= "${TOPDIR}/../sources/nvidia-layer" | ||
25 | 31 | ||
26 | MACHINE_EXTRA_INSTALL = "\ | 32 | MACHINE_EXTRA_INSTALL = "\ |
27 | tegra-firmware-fecs \ | 33 | tegra-firmware-fecs \ |
28 | tegra-firmware-gmicrocode \ | 34 | tegra-firmware-gmicrocode \ |
29 | tegra-firmware-gpccs \ | 35 | tegra-firmware-gpccs \ |
30 | tegra-firmware-gpmu \ | 36 | tegra-firmware-gpmu \ |
31 | tegra-firmware-gshader \ | 37 | tegra-firmware-gshader \ |
32 | tegra-firmware-pmu \ | 38 | tegra-firmware-pmu \ |
33 | tegra-firmware-prod-fuse \ | 39 | tegra-firmware-prod-fuse \ |
34 | tegra-firmware-xusb \ | 40 | tegra-firmware-xusb \ |
35 | tegra-firmware-vic \ | 41 | tegra-firmware-vic \ |
36 | tegra-firmware-nvdec \ | 42 | tegra-firmware-nvdec \ |
37 | tegra-firmware-nvenc \ | 43 | tegra-firmware-nvenc \ |
38 | tegra-firmware-nvjpeg \ | 44 | tegra-firmware-nvjpeg \ |
39 | tegra-drivers \ | 45 | tegra-drivers \ |
40 | virtual/libegl \ | 46 | virtual/libegl \ |
41 | virtual/libgles2 \ | 47 | virtual/libgles2 \ |
42 | libdrm-nv \ | 48 | libdrm-nv \ |
43 | asound-conf \ | 49 | asound-conf \ |
44 | " | 50 | " |
45 | 51 | ||
46 | PREFERRED_PROVIDER_virtual/libgles2 ?= "tegra-drivers" | 52 | PREFERRED_PROVIDER_virtual/libgles2 ?= "tegra-drivers" |
47 | PREFERRED_PROVIDER_virtual/libgles2-dev ?= "tegra-drivers" | 53 | PREFERRED_PROVIDER_virtual/libgles2-dev ?= "tegra-drivers" |
48 | PREFERRED_PROVIDER_virtual/libegl ?= "tegra-drivers" | 54 | PREFERRED_PROVIDER_virtual/libegl ?= "tegra-drivers" |
49 | PREFERRED_PROVIDER_virtual/libegl-dev ?= "tegra-drivers" | 55 | PREFERRED_PROVIDER_virtual/libegl-dev ?= "tegra-drivers" |
50 | PREFERRED_PROVIDER_virtual/egl ?= "tegra-drivers" | 56 | PREFERRED_PROVIDER_virtual/egl ?= "tegra-drivers" |
57 | PREFERRED_PROVIDER_virtual/libgl ?= "tegra-drivers" | ||
58 | PREFERRED_PROVIDER_virtual/libgles1 ?= "tegra-drivers" | ||
59 | PREFERRED_PROVIDER_virtual/mesa ?= "tegra-drivers" | ||
51 | 60 | ||
52 | PREFERRED_PROVIDER_wayland ?= "wayland-nv" | 61 | PREFERRED_PROVIDER_wayland ?= "wayland-nv" |
53 | PREFERRED_PROVIDER_wayland-native ?= "wayland-nv" | 62 | PREFERRED_PROVIDER_wayland-native ?= "wayland-nv" |
@@ -64,4 +73,7 @@ BBMASK .= "\ | |||
64 | |meta-vib4/recipes-devtools\ | 73 | |meta-vib4/recipes-devtools\ |
65 | |meta-vib4/recipes-extended\ | 74 | |meta-vib4/recipes-extended\ |
66 | |meta-vib4/recipes-multimedia/audiomanager\ | 75 | |meta-vib4/recipes-multimedia/audiomanager\ |
76 | |meta-vib4/recipes-core/glibc\ | ||
77 | |meta-vib4/recipes-support/lvm2\ | ||
78 | |meta-vib4/recipes-kernel/linux-libc-headers\ | ||
67 | " | 79 | " |
diff --git a/conf/distro/include/tegra.inc b/conf/distro/include/tegra.inc new file mode 100644 index 0000000..618a634 --- /dev/null +++ b/conf/distro/include/tegra.inc | |||
@@ -0,0 +1,17 @@ | |||
1 | python set_nv_drv_version () { | ||
2 | # Boiler plate code to setup bitbake objects | ||
3 | d = e.data | ||
4 | |||
5 | nv_drv_version = d.getVar('NV_DRV_VER', True) | ||
6 | if nv_drv_version != "ignore": | ||
7 | # FIXME: When we add support to internal builds, both debug and release | ||
8 | # builds will need to be considered | ||
9 | path = d.getVar('PLATFORM_TOPDIR', True) | ||
10 | get_nv_drv_cmd = "strings " + path + "/lib-target/nvidia_drv.so \ | ||
11 | | grep -o -P '(?<=Driver ).*(?=Release)' | awk {'print $1'}" | ||
12 | # Execute cmd | ||
13 | nv_drv_version = bb.process.run(get_nv_drv_cmd)[0].strip() | ||
14 | # Store returned value in NV_DRV_VER | ||
15 | d.setVar('NV_DRV_VER', nv_drv_version) | ||
16 | } | ||
17 | |||