Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion board/ti/am62x-sk/inittab_additions

This file was deleted.

1 change: 0 additions & 1 deletion board/ti/am62x-sk/post-build-ti.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ cp $BINARIES_DIR/Image $TARGET_DIR/boot
cp $BINARIES_DIR/$dtb_file $TARGET_DIR/boot/dtb/ti
cp $BUILD_DIR/ti-k3-boot-firmware-*/ti-ipc/am62xx/am62-mcu-m4f0_0-fw $TARGET_DIR/lib/firmware/
cp $BUILD_DIR/ti-k3-boot-firmware-*/ti-connectivity/* $TARGET_DIR/lib/firmware/ti-connectivity/
cat $BR2_EXTERNAL_TI_PATH/board/ti/am62x-sk/inittab_additions >> $TARGET_DIR/etc/inittab
45 changes: 45 additions & 0 deletions board/ti/am62x-sk/rootfs-overlay/etc/init.d/S99weston
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh
#
# Start weston
#

start() {
# Check if /tmp/wayland exists; if not, create it
if [ ! -d /tmp/wayland ]; then
mkdir -p /tmp/wayland
chmod 0700 /tmp/wayland
fi

# Set XDG_RUNTIME_DIR environment variable
export XDG_RUNTIME_DIR=/tmp/wayland

# Start Weston
printf "Starting weston: "
/usr/bin/weston > /var/log/weston.log 2>&1 &
[ $? = 0 ] && echo "OK" || echo "FAIL"
}

stop() {
printf "Stopping weston: "
killall weston
[ $? = 0 ] && echo "OK" || echo "FAIL"
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
sleep 1
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit 0
Loading