Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
54
sources/poky/meta/recipes-graphics/wayland/weston-init/init
Normal file
54
sources/poky/meta/recipes-graphics/wayland/weston-init/init
Normal file
@@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: weston
|
||||
# Required-Start: $local_fs $remote_fs
|
||||
# Required-Stop: $local_fs $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
### END INIT INFO
|
||||
|
||||
if test -e /etc/default/weston ; then
|
||||
. /etc/default/weston
|
||||
fi
|
||||
|
||||
killproc() {
|
||||
pid=`/bin/pidof $1`
|
||||
[ "$pid" != "" ] && kill $pid
|
||||
}
|
||||
|
||||
read CMDLINE < /proc/cmdline
|
||||
for x in $CMDLINE; do
|
||||
case $x in
|
||||
weston=false)
|
||||
echo "Weston disabled"
|
||||
exit 0;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
. /etc/profile
|
||||
export HOME=ROOTHOME
|
||||
|
||||
WESTON_USER=weston weston-start $OPTARGS &
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo "Stopping Weston"
|
||||
killproc weston
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "usage: $0 { start | stop | restart }"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,11 @@
|
||||
auth required pam_nologin.so
|
||||
auth required pam_unix.so try_first_pass nullok
|
||||
|
||||
account required pam_nologin.so
|
||||
account required pam_unix.so
|
||||
|
||||
session required pam_env.so
|
||||
session required pam_unix.so
|
||||
-session optional pam_systemd.so type=wayland class=user desktop=weston
|
||||
-session optional pam_loginuid.so
|
||||
|
||||
20
sources/poky/meta/recipes-graphics/wayland/weston-init/weston-socket.sh
Executable file
20
sources/poky/meta/recipes-graphics/wayland/weston-init/weston-socket.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# set weston variables for use with global weston socket
|
||||
global_socket="/run/wayland-0"
|
||||
if [ -e "$global_socket" ]; then
|
||||
weston_group=$(stat -c "%G" "$global_socket")
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
export WAYLAND_DISPLAY="$global_socket"
|
||||
else
|
||||
case "$(groups "$USER")" in
|
||||
*"$weston_group"*)
|
||||
export WAYLAND_DISPLAY="$global_socket"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
unset weston_group
|
||||
fi
|
||||
unset global_socket
|
||||
71
sources/poky/meta/recipes-graphics/wayland/weston-init/weston-start
Executable file
71
sources/poky/meta/recipes-graphics/wayland/weston-init/weston-start
Executable file
@@ -0,0 +1,71 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2016 O.S. Systems Software LTDA.
|
||||
# Copyright (C) 2016 Freescale Semiconductor
|
||||
|
||||
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
$0 [<weston options>]
|
||||
EOF
|
||||
}
|
||||
|
||||
## Module support
|
||||
modules_dir=@DATADIR@/weston-start
|
||||
|
||||
# Add weston extra argument
|
||||
add_weston_argument() {
|
||||
weston_args="$weston_args $1"
|
||||
}
|
||||
|
||||
## Add module to --modules argument
|
||||
add_weston_module() {
|
||||
if [[ "x${weston_modules}" == "x" ]]; then
|
||||
weston_modules="--modules "
|
||||
fi;
|
||||
weston_modules+="${1},"
|
||||
}
|
||||
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$WESTON_USER" ]; then
|
||||
if [ -z "$WESTON_GROUP" ]; then
|
||||
# no explicit WESTON_GROUP given, therefore use WESTON_USER
|
||||
export WESTON_GROUP="${WESTON_USER}"
|
||||
fi
|
||||
fi
|
||||
|
||||
weston_args=$*
|
||||
|
||||
# Load and run modules
|
||||
if [ -d "$modules_dir" ]; then
|
||||
for m in "$modules_dir"/*; do
|
||||
# Skip backup files
|
||||
if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# process module
|
||||
. $m
|
||||
if [[ x"{$weston_modules}" != "x" ]]; then
|
||||
add_weston_argument "${weston_modules}"
|
||||
fi;
|
||||
done
|
||||
fi
|
||||
|
||||
if test -z "$XDG_RUNTIME_DIR"; then
|
||||
export XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}`
|
||||
if ! test -d "$XDG_RUNTIME_DIR"; then
|
||||
mkdir --parents $XDG_RUNTIME_DIR
|
||||
chmod 0700 $XDG_RUNTIME_DIR
|
||||
fi
|
||||
if [ -n "$WESTON_USER" ]
|
||||
then
|
||||
chown $WESTON_USER:$WESTON_GROUP $XDG_RUNTIME_DIR
|
||||
fi
|
||||
fi
|
||||
|
||||
su -c "XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}` weston $weston_args --log=/tmp/weston.log" $WESTON_USER
|
||||
@@ -0,0 +1,75 @@
|
||||
# configuration file for Weston
|
||||
|
||||
[core]
|
||||
#modules=xwayland.so,cms-colord.so
|
||||
#shell=desktop-shell.so
|
||||
#gbm-format=xrgb2101010
|
||||
require-input=false
|
||||
|
||||
#[shell]
|
||||
#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
|
||||
#background-color=0xff002244
|
||||
#background-type=tile
|
||||
#clock-format=minutes
|
||||
#panel-color=0x90ff0000
|
||||
#locking=true
|
||||
#animation=zoom
|
||||
#startup-animation=fade
|
||||
#binding-modifier=ctrl
|
||||
#num-workspaces=6
|
||||
#cursor-theme=whiteglass
|
||||
#cursor-size=24
|
||||
|
||||
#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
|
||||
#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
|
||||
#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
|
||||
#animation=fade
|
||||
|
||||
#[launcher]
|
||||
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
|
||||
#path=/usr/bin/gnome-terminal
|
||||
|
||||
#[launcher]
|
||||
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
|
||||
#path=/usr/bin/weston-terminal
|
||||
|
||||
#[launcher]
|
||||
#icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
|
||||
#path=/usr/bin/google-chrome
|
||||
|
||||
#[launcher]
|
||||
#icon=/usr/share/icons/gnome/24x24/apps/arts.png
|
||||
#path=/build/weston-0lEgCh/weston-1.11.0/weston-flower
|
||||
|
||||
#[input-method]
|
||||
#path=/usr/libexec/weston-keyboard
|
||||
|
||||
#[output]
|
||||
#name=LVDS1
|
||||
#mode=1680x1050
|
||||
#transform=90
|
||||
#icc_profile=/usr/share/color/icc/colord/Bluish.icc
|
||||
|
||||
#[output]
|
||||
#name=VGA1
|
||||
#mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
|
||||
#transform=flipped
|
||||
|
||||
#[output]
|
||||
#name=X1
|
||||
#mode=1024x768
|
||||
#transform=flipped-90
|
||||
|
||||
#[libinput]
|
||||
#enable_tap=true
|
||||
|
||||
#[touchpad]
|
||||
#constant_accel_factor = 50
|
||||
#min_accel_factor = 0.16
|
||||
#max_accel_factor = 1.0
|
||||
|
||||
[screen-share]
|
||||
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
|
||||
|
||||
#[xwayland]
|
||||
#path=/usr/bin/Xwayland
|
||||
@@ -0,0 +1,71 @@
|
||||
# This is a system unit for launching Weston with auto-login as the
|
||||
# user configured here.
|
||||
#
|
||||
# Weston must be built with systemd support, and your weston.ini must load
|
||||
# the plugin systemd-notify.so.
|
||||
[Unit]
|
||||
Description=Weston, a Wayland compositor, as a system service
|
||||
Documentation=man:weston(1) man:weston.ini(5)
|
||||
Documentation=http://wayland.freedesktop.org/
|
||||
|
||||
# Make sure we are started after logins are permitted.
|
||||
Requires=systemd-user-sessions.service
|
||||
After=systemd-user-sessions.service
|
||||
|
||||
# If Plymouth is used, we want to start when it is on its way out.
|
||||
After=plymouth-quit-wait.service
|
||||
|
||||
# D-Bus is necessary for contacting logind. Logind is required.
|
||||
Wants=dbus.socket
|
||||
After=dbus.socket
|
||||
|
||||
# Ensure the socket is present
|
||||
Requires=weston.socket
|
||||
|
||||
# Since we are part of the graphical session, make sure we are started before
|
||||
# it is complete.
|
||||
Before=graphical.target
|
||||
|
||||
# Prevent starting on systems without virtual consoles, Weston requires one
|
||||
# for now.
|
||||
ConditionPathExists=/dev/tty0
|
||||
|
||||
[Service]
|
||||
# Requires systemd-notify.so Weston plugin.
|
||||
Type=notify
|
||||
EnvironmentFile=/etc/default/weston
|
||||
ExecStart=/usr/bin/weston --modules=systemd-notify.so
|
||||
|
||||
# Optional watchdog setup
|
||||
#TimeoutStartSec=60
|
||||
#WatchdogSec=20
|
||||
|
||||
# The user to run Weston as.
|
||||
User=weston
|
||||
Group=weston
|
||||
|
||||
# Make sure the working directory is the users home directory
|
||||
WorkingDirectory=/home/weston
|
||||
|
||||
# Set up a full user session for the user, required by Weston.
|
||||
PAMName=weston-autologin
|
||||
|
||||
# A virtual terminal is needed.
|
||||
TTYPath=/dev/tty7
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
|
||||
# Fail to start if not controlling the tty.
|
||||
StandardInput=tty-fail
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
|
||||
UtmpIdentifier=tty7
|
||||
UtmpMode=user
|
||||
|
||||
[Install]
|
||||
# Note: If you only want weston to start on-demand, remove this line with a
|
||||
# service drop file
|
||||
WantedBy=graphical.target
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Weston socket
|
||||
RequiresMountsFor=/run
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/wayland-0
|
||||
SocketMode=0775
|
||||
SocketUser=weston
|
||||
SocketGroup=wayland
|
||||
RemoveOnStop=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
|
||||
Reference in New Issue
Block a user