mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 11:32:30 +00:00
tegra-configs: refresh patches
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
This commit is contained in:
committed by
Matt Madison
parent
7f01265d37
commit
4631f0c639
@@ -0,0 +1,334 @@
|
||||
From 08921d59ef6c2c7170dcdc8904c5760fa5b4006c Mon Sep 17 00:00:00 2001
|
||||
From: Ilies CHERGUI <ichergui@nvidia.com>
|
||||
Date: Sun, 6 Oct 2024 19:31:39 +0100
|
||||
Subject: [PATCH] Patch nv.sh script for OE use
|
||||
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
|
||||
Signed-off-by: Matt Madison <matt@madison.systems>
|
||||
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
|
||||
---
|
||||
etc/systemd/nv.sh | 310 ----------------------------------------------
|
||||
1 file changed, 310 deletions(-)
|
||||
|
||||
diff --git a/etc/systemd/nv.sh b/etc/systemd/nv.sh
|
||||
index 60ac7d0..84fca35 100755
|
||||
--- a/etc/systemd/nv.sh
|
||||
+++ b/etc/systemd/nv.sh
|
||||
@@ -108,313 +108,3 @@ fi
|
||||
if [ -e "/var/lib/lightdm" ]; then
|
||||
sudo chown lightdm:lightdm /var/lib/lightdm -R
|
||||
fi
|
||||
-
|
||||
-# Set INSTALL_DOWNSTREAM_WESTON="1" to install downstream weston. This will
|
||||
-# overwrite weston binaries in standard weston installation path with downstream
|
||||
-# weston binaries which are present in "/usr/lib/aarch64-linux-gnu/nvidia. This is default.
|
||||
-#
|
||||
-# Set INSTALL_DOWNSTREAM_WESTON="0" to avoid overwriting weston binaries in standard
|
||||
-# weston installation path with downstream weston binaries which are present in
|
||||
-# /usr/lib/aarch64-linux-gnu/nvidia.
|
||||
-INSTALL_DOWNSTREAM_WESTON="1"
|
||||
-if [ "${INSTALL_DOWNSTREAM_WESTON}" -eq "1" ]; then
|
||||
- desktop_shell="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/desktop-shell.so"
|
||||
- if [ -e "${desktop_shell}" ]; then
|
||||
- ln -sf "${desktop_shell}" "${LIB_DIR}/weston/desktop-shell.so"
|
||||
- fi
|
||||
-
|
||||
- drm_backend="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/drm-backend.so"
|
||||
- if [ -e "${drm_backend}" ]; then
|
||||
- ln -sf "${drm_backend}" "${LIB_DIR}/weston/drm-backend.so"
|
||||
- fi
|
||||
-
|
||||
- headless_backend="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/headless-backend.so"
|
||||
- if [ -e "${headless_backend}" ]; then
|
||||
- ln -sf "${headless_backend}" "${LIB_DIR}/weston/headless-backend.so"
|
||||
- fi
|
||||
-
|
||||
- fullscreen_shell="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/fullscreen-shell.so"
|
||||
- if [ -e "${fullscreen_shell}" ]; then
|
||||
- ln -sf "${fullscreen_shell}" "${LIB_DIR}/weston/fullscreen-shell.so"
|
||||
- fi
|
||||
-
|
||||
- gl_renderer="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/gl-renderer.so"
|
||||
- if [ -e "${gl_renderer}" ]; then
|
||||
- ln -sf "${gl_renderer}" "${LIB_DIR}/weston/gl-renderer.so"
|
||||
- fi
|
||||
-
|
||||
- hmi_controller="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/hmi-controller.so"
|
||||
- if [ -e "${hmi_controller}" ]; then
|
||||
- ln -sf "${hmi_controller}" "${LIB_DIR}/weston/hmi-controller.so"
|
||||
- fi
|
||||
-
|
||||
- ivi_controller="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/ivi-controller.so"
|
||||
- if [ -e "${ivi_controller}" ]; then
|
||||
- ln -sf "${ivi_controller}" "${LIB_DIR}/weston/ivi-controller.so"
|
||||
- fi
|
||||
-
|
||||
- ivi_shell="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/ivi-shell.so"
|
||||
- if [ -e "${ivi_shell}" ]; then
|
||||
- ln -sf "${ivi_shell}" "${LIB_DIR}/weston/ivi-shell.so"
|
||||
- fi
|
||||
-
|
||||
- color_lcms="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/color-lcms.so"
|
||||
- if [ -e "${color_lcms}" ]; then
|
||||
- ln -sf "${color_lcms}" "${LIB_DIR}/weston/color-lcms.so"
|
||||
- fi
|
||||
-
|
||||
- libweston_13="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/libweston-13.so.0"
|
||||
- if [ -e "${libweston_13}" ]; then
|
||||
- ln -sf "${libweston_13}" "${LIB_DIR}/libweston-13.so.0"
|
||||
- fi
|
||||
-
|
||||
- wayland_backend="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/wayland-backend.so"
|
||||
- if [ -e "${wayland_backend}" ]; then
|
||||
- ln -sf "${wayland_backend}" "${LIB_DIR}/weston/wayland-backend.so"
|
||||
- fi
|
||||
-
|
||||
- libilmClient_2_3_2="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/libilmClient.so.2.3.2"
|
||||
- if [ -e "${libilmClient_2_3_2}" ]; then
|
||||
- ln -sf "${libilmClient_2_3_2}" "${LIB_DIR}/libilmClient.so.2.3.2"
|
||||
- fi
|
||||
-
|
||||
- libilmCommon_2_3_2="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/libilmCommon.so.2.3.2"
|
||||
- if [ -e "${libilmCommon_2_3_2}" ]; then
|
||||
- ln -sf "${libilmCommon_2_3_2}" "${LIB_DIR}/libilmCommon.so.2.3.2"
|
||||
- fi
|
||||
-
|
||||
- libilmControl_2_3_2="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/libilmControl.so.2.3.2"
|
||||
- if [ -e "${libilmControl_2_3_2}" ]; then
|
||||
- ln -sf "${libilmControl_2_3_2}" "${LIB_DIR}/libilmControl.so.2.3.2"
|
||||
- fi
|
||||
-
|
||||
- libilmInput_2_3_2="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/libilmInput.so.2.3.2"
|
||||
- if [ -e "${libilmInput_2_3_2}" ]; then
|
||||
- ln -sf "${libilmInput_2_3_2}" "${LIB_DIR}/libilmInput.so.2.3.2"
|
||||
- fi
|
||||
-
|
||||
- weston_desktop_shell="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-desktop-shell"
|
||||
- if [ -e "${weston_desktop_shell}" ]; then
|
||||
- ln -sf "${weston_desktop_shell}" "/usr/bin/weston-desktop-shell"
|
||||
- fi
|
||||
-
|
||||
- weston_keyboard="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-keyboard"
|
||||
- if [ -e "${weston_keyboard}" ]; then
|
||||
- ln -sf "${weston_keyboard}" "/usr/bin/weston-keyboard"
|
||||
- fi
|
||||
-
|
||||
- weston_desktop_shell="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-desktop-shell"
|
||||
- if [ -e "$weston_desktop_shell{}" ]; then
|
||||
- ln -sf "${weston_desktop_shell}" "/usr/lib/weston/weston-desktop-shell"
|
||||
- fi
|
||||
-
|
||||
- weston_keyboard="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-keyboard"
|
||||
- if [ -e "${weston_keyboard}" ]; then
|
||||
- ln -sf "${weston_keyboard}" "/usr/lib/weston/weston-keyboard"
|
||||
- fi
|
||||
-
|
||||
- weston_screenshooter="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-screenshooter"
|
||||
- if [ -e "${weston_screenshooter}" ]; then
|
||||
- ln -sf "${weston_screenshooter}" "/usr/lib/weston/weston-screenshooter"
|
||||
- fi
|
||||
-
|
||||
- EGLWLInputEventExample="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/EGLWLInputEventExample"
|
||||
- if [ -e "${EGLWLInputEventExample}" ]; then
|
||||
- ln -sf "${EGLWLInputEventExample}" "/usr/bin/EGLWLInputEventExample"
|
||||
- fi
|
||||
-
|
||||
- EGLWLMockNavigation="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/EGLWLMockNavigation"
|
||||
- if [ -e "${EGLWLMockNavigation}" ]; then
|
||||
- ln -sf "${EGLWLMockNavigation}" "/usr/bin/EGLWLMockNavigation"
|
||||
- fi
|
||||
-
|
||||
- LayerManagerControl="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/LayerManagerControl"
|
||||
- if [ -e "${LayerManagerControl}" ]; then
|
||||
- ln -sf "${LayerManagerControl}" "/usr/bin/LayerManagerControl"
|
||||
- fi
|
||||
-
|
||||
- simple_weston_client="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/simple-weston-client"
|
||||
- if [ -e "${simple_weston_client}" ]; then
|
||||
- ln -sf "${simple_weston_client}" "/usr/bin/simple-weston-client"
|
||||
- fi
|
||||
-
|
||||
- spring_tool="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/spring-tool"
|
||||
- if [ -e "${spring_tool}" ]; then
|
||||
- ln -sf "${spring_tool}" "/usr/bin/spring-tool"
|
||||
- fi
|
||||
-
|
||||
- weston_bin="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston"
|
||||
- if [ -e "${weston_bin}" ]; then
|
||||
- ln -sf "${weston_bin}" "/usr/bin/weston"
|
||||
- fi
|
||||
-
|
||||
- weston_calibrator="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-calibrator"
|
||||
- if [ -e "${weston_calibrator}" ]; then
|
||||
- ln -sf "${weston_calibrator}" "/usr/bin/weston-calibrator"
|
||||
- fi
|
||||
-
|
||||
- weston_clickdot="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-clickdot"
|
||||
- if [ -e "${weston_clickdot}" ]; then
|
||||
- ln -sf "${weston_clickdot}" "/usr/bin/weston-clickdot"
|
||||
- fi
|
||||
-
|
||||
- weston_cliptest="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-cliptest"
|
||||
- if [ -e "${weston_cliptest}" ]; then
|
||||
- ln -sf "${weston_cliptest}" "/usr/bin/weston-cliptest"
|
||||
- fi
|
||||
-
|
||||
- weston_content_protection="/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-content-protection"
|
||||
- if [ -e "${weston_content_protection}" ]; then
|
||||
- ln -sf "${weston_content_protection}" "/usr/bin/weston-content-protection"
|
||||
- fi
|
||||
-
|
||||
- weston_debug="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-debug"
|
||||
- if [ -e "${weston_debug}" ]; then
|
||||
- ln -sf "${weston_debug}" "/usr/bin/weston-debug"
|
||||
- fi
|
||||
-
|
||||
- weston_dnd="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-dnd"
|
||||
- if [ -e "${weston_dnd}" ]; then
|
||||
- ln -sf "${weston_dnd}" "/usr/bin/weston-dnd"
|
||||
- fi
|
||||
-
|
||||
- weston_eventdemo="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-eventdemo"
|
||||
- if [ -e "${weston_eventdemo}" ]; then
|
||||
- ln -sf "${weston_eventdemo}" "/usr/bin/weston-eventdemo"
|
||||
- fi
|
||||
-
|
||||
- weston_flower="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-flower"
|
||||
- if [ -e "${weston_flower}" ]; then
|
||||
- ln -sf "${weston_flower}" "/usr/bin/weston-flower"
|
||||
- fi
|
||||
-
|
||||
- weston_fullscreen="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-fullscreen"
|
||||
- if [ -e "${weston_fullscreen}" ]; then
|
||||
- ln -sf "${weston_fullscreen}" "/usr/bin/weston-fullscreen"
|
||||
- fi
|
||||
-
|
||||
- weston_image="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-image"
|
||||
- if [ -e "${weston_image}" ]; then
|
||||
- ln -sf "${weston_image}" "/usr/bin/weston-image"
|
||||
- fi
|
||||
-
|
||||
- weston_multi_resource="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-multi-resource"
|
||||
- if [ -e "${weston_multi_resource}" ]; then
|
||||
- ln -sf "${weston_multi_resource}" "/usr/bin/weston-multi-resource"
|
||||
- fi
|
||||
-
|
||||
- weston_resizor="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-resizor"
|
||||
- if [ -e "${weston_resizor}" ]; then
|
||||
- ln -sf "${weston_resizor}" "/usr/bin/weston-resizor"
|
||||
- fi
|
||||
-
|
||||
- weston_scaler="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-scaler"
|
||||
- if [ -e "${weston_scaler}" ]; then
|
||||
- ln -sf "${weston_scaler}" "/usr/bin/weston-scaler"
|
||||
- fi
|
||||
-
|
||||
- weston_simple_egl="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-simple-egl"
|
||||
- if [ -e "${weston_simple_egl}" ]; then
|
||||
- ln -sf "${weston_simple_egl}" "/usr/bin/weston-simple-egl"
|
||||
- fi
|
||||
-
|
||||
- weston_simple_shm="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-simple-shm"
|
||||
- if [ -e "${weston_simple_shm}" ]; then
|
||||
- ln -sf "${weston_simple_shm}" "/usr/bin/weston-simple-shm"
|
||||
- fi
|
||||
-
|
||||
- weston_simple_touch="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-simple-touch"
|
||||
- if [ -e "${weston_simple_touch}" ]; then
|
||||
- ln -sf "${weston_simple_touch}" "/usr/bin/weston-simple-touch"
|
||||
- fi
|
||||
-
|
||||
- weston_smoke="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-smoke"
|
||||
- if [ -e "${weston_smoke}" ]; then
|
||||
- ln -sf "${weston_smoke}" "/usr/bin/weston-smoke"
|
||||
- fi
|
||||
-
|
||||
- weston_stacking="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-stacking"
|
||||
- if [ -e "${weston_stacking}" ]; then
|
||||
- ln -sf "${weston_stacking}" "/usr/bin/weston-stacking"
|
||||
- fi
|
||||
-
|
||||
- weston_subsurfaces="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-subsurfaces"
|
||||
- if [ -e "${weston_subsurfaces}" ]; then
|
||||
- ln -sf "${weston_subsurfaces}" "/usr/bin/weston-subsurfaces"
|
||||
- fi
|
||||
-
|
||||
- weston_terminal="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-terminal"
|
||||
- if [ -e "${weston_terminal}" ]; then
|
||||
- ln -sf "${weston_terminal}" "/usr/bin/weston-terminal"
|
||||
- fi
|
||||
-
|
||||
- weston_transformed="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-transformed"
|
||||
- if [ -e "${weston_transformed}" ]; then
|
||||
- ln -sf "${weston_transformed}" "/usr/bin/weston-transformed"
|
||||
- fi
|
||||
-
|
||||
- weston_presentation_shm="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-presentation-shm"
|
||||
- if [ -e "${weston_presentation_shm}" ]; then
|
||||
- ln -sf "${weston_presentation_shm}" "/usr/bin/weston-presentation-shm"
|
||||
- fi
|
||||
-
|
||||
- weston_simple_damage="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-simple-damage"
|
||||
- if [ -e "${weston_simple_damage}" ]; then
|
||||
- ln -sf "${weston_simple_damage}" "/usr/bin/weston-simple-damage"
|
||||
- fi
|
||||
-
|
||||
- weston_simple_dmabuf_feedback="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-simple-dmabuf-feedback"
|
||||
- if [ -e "${weston_simple_dmabuf_feedback}" ]; then
|
||||
- ln -sf "${weston_simple_dmabuf_feedback}" "/usr/bin/weston-simple-dmabuf-feedback"
|
||||
- fi
|
||||
-
|
||||
- weston_simple_im="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-simple-im"
|
||||
- if [ -e "${weston_simple_im}" ]; then
|
||||
- ln -sf "${weston_simple_im}" "/usr/bin/weston-simple-im"
|
||||
- fi
|
||||
-
|
||||
- weston_tablet="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-tablet"
|
||||
- if [ -e "${weston_tablet}" ]; then
|
||||
- ln -sf "${weston_tablet}" "/usr/bin/weston-tablet"
|
||||
- fi
|
||||
-
|
||||
- weston_touch_calibrator="/usr/lib/aarch64-linux-gnu/nvidia/weston-13.0/weston-touch-calibrator"
|
||||
- if [ -e "${weston_touch_calibrator}" ]; then
|
||||
- ln -sf "${weston_touch_calibrator}" "/usr/bin/weston-touch-calibrator"
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
-# On Ubuntu 22.04, libwayland-1.20 is supported by default. But, Weston 13.0 depends on
|
||||
-# libwayland-1.22. Until libwayland-1.22 is officially supported on Ubuntu 22.04 or until
|
||||
-# we migrate to Ubuntu 24.04, we need to maintain the pre-built libwayland-1.22 binaries on P4
|
||||
-# and package them on our samplefs manually.
|
||||
-#
|
||||
-# Set INSTALL_DOWNSTREAM_LIBWAYLAND="1" to install locally maintained libwayland-1.22. This will
|
||||
-# overwrite libwayland-*.so.0 symlinks in standard libwayland installation path with downstream
|
||||
-# libwayland-1.22 binaries which are present in "/usr/lib/aarch64-linux-gnu/nvidia". This is default.
|
||||
-#
|
||||
-# Set INSTALL_DOWNSTREAM_LIBWAYLAND="0" to avoid overwriting libwayland-*.so.0 symlinks in standard
|
||||
-# libwayland installation path with locally maintained libwayland-1.22 binaries which are present in
|
||||
-# /usr/lib/aarch64-linux-gnu/nvidia.
|
||||
-INSTALL_DOWNSTREAM_LIBWAYLAND="1"
|
||||
-if [ "${INSTALL_DOWNSTREAM_LIBWAYLAND}" -eq "1" ]; then
|
||||
- libwayland_client_0_22_0="/usr/lib/aarch64-linux-gnu/nvidia/libwayland-client.so.0.22.0"
|
||||
- if [ -e "${libwayland_client_0_22_0}" ]; then
|
||||
- ln -sf "${libwayland_client_0_22_0}" "${LIB_DIR}/libwayland-client.so.0"
|
||||
- fi
|
||||
-
|
||||
- libwayland_server_0_22_0="/usr/lib/aarch64-linux-gnu/nvidia/libwayland-server.so.0.22.0"
|
||||
- if [ -e "${libwayland_server_0_22_0}" ]; then
|
||||
- ln -sf "${libwayland_server_0_22_0}" "${LIB_DIR}/libwayland-server.so.0"
|
||||
- fi
|
||||
-
|
||||
- libwayland_cursor_0_22_0="/usr/lib/aarch64-linux-gnu/nvidia/libwayland-cursor.so.0.22.0"
|
||||
- if [ -e "${libwayland_cursor_0_22_0}" ]; then
|
||||
- ln -sf "${libwayland_cursor_0_22_0}" "${LIB_DIR}/libwayland-cursor.so.0"
|
||||
- fi
|
||||
-
|
||||
- libwayland_egl_1_22_0="/usr/lib/aarch64-linux-gnu/nvidia/libwayland-egl.so.1.22.0"
|
||||
- if [ -e "${libwayland_egl_1_22_0}" ]; then
|
||||
- ln -sf "${libwayland_egl_1_22_0}" "${LIB_DIR}/libwayland-egl.so.1"
|
||||
- fi
|
||||
-fi
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
From a6483bf9114ca761a0ffeedeedb387ca0531a74d Mon Sep 17 00:00:00 2001
|
||||
From: Matt Madison <matt@madison.systems>
|
||||
Date: Tue, 16 Nov 2021 09:08:15 -0800
|
||||
Subject: [PATCH] Patch udev rules for OE use
|
||||
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
Signed-off-by: Matt Madison <matt@madison.systems>
|
||||
|
||||
---
|
||||
etc/udev/rules.d/99-tegra-devices.rules | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
Index: tegra-configs-36.3.0-20240424200557/etc/udev/rules.d/99-tegra-devices.rules
|
||||
===================================================================
|
||||
--- tegra-configs-36.3.0-20240424200557.orig/etc/udev/rules.d/99-tegra-devices.rules
|
||||
+++ tegra-configs-36.3.0-20240424200557/etc/udev/rules.d/99-tegra-devices.rules
|
||||
@@ -9,7 +9,6 @@
|
||||
# its affiliates is strictly prohibited.
|
||||
|
||||
ACTION=="remove" GOTO="nvidia_end"
|
||||
-KERNEL=="camera.pcl", RUN+="/usr/sbin/camera_device_detect"
|
||||
|
||||
# root only devices
|
||||
KERNEL=="knvrm" OWNER="root" GROUP="root" MODE="0660"
|
||||
@@ -1,263 +0,0 @@
|
||||
From a5634a1e294bf8bd76542af5848c2750805906d5 Mon Sep 17 00:00:00 2001
|
||||
From: Ilies CHERGUI <ichergui@nvidia.com>
|
||||
Date: Sun, 10 Dec 2023 18:04:47 +0000
|
||||
Subject: [PATCH] Patch nv.sh script for OE use
|
||||
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
Signed-off-by: Matt Madison <matt@madison.systems>
|
||||
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
|
||||
---
|
||||
etc/systemd/nv.sh | 219 ----------------------------------------------
|
||||
1 file changed, 219 deletions(-)
|
||||
|
||||
diff --git a/etc/systemd/nv.sh b/etc/systemd/nv.sh
|
||||
index 8044f43..007ddc3 100755
|
||||
--- a/etc/systemd/nv.sh
|
||||
+++ b/etc/systemd/nv.sh
|
||||
@@ -92,10 +92,6 @@ if [ -e "/proc/device-tree/compatible" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
-if [ "$SOCFAMILY" = "tegra194" ]; then
|
||||
- sudo bash -c "ln -sf /etc/X11/xorg.conf.t194_ref /etc/X11/xorg.conf"
|
||||
-fi
|
||||
-
|
||||
if [ "$SOCFAMILY" = "Tegra13" ] &&
|
||||
[ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ]; then
|
||||
bash \
|
||||
@@ -115,11 +111,6 @@ elif [ -w /sys/module/cpu_tegra3/parameters/auto_hotplug ]; then
|
||||
echo 1 > /sys/module/cpu_tegra3/parameters/auto_hotplug
|
||||
fi
|
||||
|
||||
-# Remove the spawning of ondemand service
|
||||
-if [ -e "/etc/systemd/system/multi-user.target.wants/ondemand.service" ]; then
|
||||
- rm -f "/etc/systemd/system/multi-user.target.wants/ondemand.service"
|
||||
-fi
|
||||
-
|
||||
# mmc read ahead size
|
||||
if [ -e /sys/block/mmcblk0/queue/read_ahead_kb ]; then
|
||||
echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb
|
||||
@@ -135,13 +126,6 @@ if [ "${SOCFAMILY}" = "tegra194" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
-# Ensure libglx.so is not overwritten by a distribution update of Xorg
|
||||
-# Alternatively, package management tools could be used to prevent updates
|
||||
-ARCH=$(/usr/bin/dpkg --print-architecture)
|
||||
-if [ "${ARCH}" = "arm64" ]; then
|
||||
- LIB_DIR="/usr/lib/aarch64-linux-gnu"
|
||||
-fi
|
||||
-
|
||||
# Disable lazy vfree pages
|
||||
if [ -e "/proc/sys/vm/lazy_vfree_pages" ]; then
|
||||
echo 0 > "/proc/sys/vm/lazy_vfree_pages"
|
||||
@@ -189,206 +173,3 @@ fi
|
||||
if [ -e "/var/lib/lightdm" ]; then
|
||||
sudo chown lightdm:lightdm /var/lib/lightdm -R
|
||||
fi
|
||||
-
|
||||
-# Set INSTALL_DOWNSTREAM_WESTON="1" to install downstream weston. This will
|
||||
-# overwrite weston binaries in standard weston installation path with downstream
|
||||
-# weston binaries which are present in "/usr/lib/aarch64-linux-gnu/nvidia. This is default.
|
||||
-#
|
||||
-# Set INSTALL_DOWNSTREAM_WESTON="0" to avoid overwriting weston binaries in standard
|
||||
-# weston installation path with downstream weston binaries which are present in
|
||||
-# /usr/lib/aarch64-linux-gnu/nvidia.
|
||||
-INSTALL_DOWNSTREAM_WESTON="1"
|
||||
-if [ "${INSTALL_DOWNSTREAM_WESTON}" -eq "1" ]; then
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/desktop-shell.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/desktop-shell.so" "${LIB_DIR}/weston/desktop-shell.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/drm-backend.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/drm-backend.so" "${LIB_DIR}/weston/drm-backend.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/fullscreen-shell.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/fullscreen-shell.so" "${LIB_DIR}/weston/fullscreen-shell.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/gl-renderer.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/gl-renderer.so" "${LIB_DIR}/weston/gl-renderer.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/hmi-controller.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/hmi-controller.so" "${LIB_DIR}/weston/hmi-controller.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-controller.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-controller.so" "${LIB_DIR}/weston/ivi-controller.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-shell.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/ivi-shell.so" "${LIB_DIR}/weston/ivi-shell.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-6.so.0" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-6.so.0" "${LIB_DIR}/libweston-6.so.0"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-desktop-6.so.0" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libweston-desktop-6.so.0" "${LIB_DIR}/libweston-desktop-6.so.0"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/wayland-backend.so" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/wayland-backend.so" "${LIB_DIR}/weston/wayland-backend.so"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmClient.so.2.2.0" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmClient.so.2.2.0" "${LIB_DIR}/libilmClient.so.2.2.0"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmCommon.so.2.2.0" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmCommon.so.2.2.0" "${LIB_DIR}/libilmCommon.so.2.2.0"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmControl.so.2.2.0" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmControl.so.2.2.0" "${LIB_DIR}/libilmControl.so.2.2.0"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmInput.so.2.2.0" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/libilmInput.so.2.2.0" "${LIB_DIR}/libilmInput.so.2.2.0"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-desktop-shell" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-desktop-shell" "/usr/lib/weston/weston-desktop-shell"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-keyboard" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-keyboard" "/usr/lib/weston/weston-keyboard"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-screenshooter" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-screenshooter" "/usr/lib/westonweston-screenshooter"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLInputEventExample" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLInputEventExample" "/usr/bin/EGLWLInputEventExample"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLMockNavigation" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/EGLWLMockNavigation" "/usr/bin/EGLWLMockNavigation"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/LayerManagerControl" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/LayerManagerControl" "/usr/bin/LayerManagerControl"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/simple-weston-client" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/simple-weston-client" "/usr/bin/simple-weston-client"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/spring-tool" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/spring-tool" "/usr/bin/spring-tool"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston" "/usr/bin/weston"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-calibrator" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-calibrator" "/usr/bin/weston-calibrator"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-clickdot" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-clickdot" "/usr/bin/weston-clickdot"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-cliptest" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-cliptest" "/usr/bin/weston-cliptest"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-content-protection" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-content-protection" "/usr/bin/weston-content-protection"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-debug" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-debug" "/usr/bin/weston-debug"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-dnd" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-dnd" "/usr/bin/weston-dnd"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-eventdemo" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-eventdemo" "/usr/bin/weston-eventdemo"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-flower" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-flower" "/usr/bin/weston-flower"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-fullscreen" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-fullscreen" "/usr/bin/weston-fullscreen"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-image" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-image" "/usr/bin/weston-image"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-info" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-info" "/usr/bin/weston-info"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-ivi-shell-user-interface" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-ivi-shell-user-interface" "/usr/bin/weston-ivi-shell-user-interface"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-launch" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-launch" "/usr/bin/weston-launch"
|
||||
- chmod "+s" "/usr/bin/weston-launch"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-multi-resource" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-multi-resource" "/usr/bin/weston-multi-resource"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-output-mode" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-output-mode" "/usr/bin/weston-output-mode"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-resizor" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-resizor" "/usr/bin/weston-resizor"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-scaler" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-scaler" "/usr/bin/weston-scaler"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-egl" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-egl" "/usr/bin/weston-simple-egl"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-shm" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-shm" "/usr/bin/weston-simple-shm"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-touch" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-simple-touch" "/usr/bin/weston-simple-touch"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-smoke" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-smoke" "/usr/bin/weston-smoke"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-stacking" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-stacking" "/usr/bin/weston-stacking"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-subsurfaces" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-subsurfaces" "/usr/bin/weston-subsurfaces"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-terminal" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-terminal" "/usr/bin/weston-terminal"
|
||||
- fi
|
||||
-
|
||||
- if [ -e "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-transformed" ]; then
|
||||
- ln -sf "/usr/lib/aarch64-linux-gnu/nvidia/weston/weston-transformed" "/usr/bin/weston-transformed"
|
||||
- fi
|
||||
-fi
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -17,8 +17,7 @@ SRC_URI[init.sha256sum] = "${INITSUM}"
|
||||
SRC_URI[x11.sha256sum] = "${X11SUM}"
|
||||
|
||||
SRC_URI += "\
|
||||
file://0001-Patch-udev-rules-for-OE-use.patch \
|
||||
file://0002-Patch-nv.sh-script-for-OE-use.patch \
|
||||
file://0001-Patch-nv.sh-script-for-OE-use.patch \
|
||||
file://nv-l4t-bootloader-config.sh \
|
||||
file://devices.csv \
|
||||
file://drivers.csv \
|
||||
|
||||
Reference in New Issue
Block a user