patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 6a14f905d2e9e5533d00aac1ee7f920ebf55fac3 713 bytes (raw)
name: host/rootfs/image/usr/bin/run-weston 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
#!/usr/bin/sh --
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2026 Demi Marie Obenour <demiobenour@gmail.com>
set -euf
case ${1-} in
/dev/dri/card[0-9]*)
	first_dev=${1#/dev/dri/} extra_cards=
	shift
	;;
*)
	echo 'No card nodes found, cannot run Weston' >&2
	exit 1
	;;
esac
for i; do
	case $i in
	*,*) continue ;;
	/dev/dri/card[0-9]*) : ;;
	*)
		echo 'Bad name from execline script' >&2
		exit 1
		;;
	esac
	card_name=${i#/dev/dri/}
	case $card_name in */*) continue ;; esac
	if [ -z "$extra_cards" ]; then
		extra_cards=--additional-devices=$card_name
	else
		extra_cards=$extra_cards,$card_name
	fi
done
exec weston --backend=drm "--drm-device=$first_dev" $extra_cards -S "$WAYLAND_DISPLAY"

debug log:

solving 6a14f905d2e9e5533d00aac1ee7f920ebf55fac3 ...
found 6a14f905d2e9e5533d00aac1ee7f920ebf55fac3 in https://inbox.spectrum-os.org/spectrum-devel/20260524-weston-card-fix-v1-1-9c6dad59c245@gmail.com/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20260524-weston-card-fix-v1-1-9c6dad59c245@gmail.com/
diff --git a/host/rootfs/image/usr/bin/run-weston b/host/rootfs/image/usr/bin/run-weston
new file mode 100755
index 0000000000000000000000000000000000000000..6a14f905d2e9e5533d00aac1ee7f920ebf55fac3

Checking patch host/rootfs/image/usr/bin/run-weston...
Applied patch host/rootfs/image/usr/bin/run-weston cleanly.

index at:
100755 6a14f905d2e9e5533d00aac1ee7f920ebf55fac3	host/rootfs/image/usr/bin/run-weston

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).