This commit is contained in:
2026-08-28 10:46:17 +02:00
parent 4fe0468a72
commit c7d2c6c161
2 changed files with 29 additions and 4 deletions
+10 -4
View File
@@ -36,20 +36,26 @@ remove-passwd:
.PHONY: apt-install
apt-install:
sudo apt update
sudo apt install -y weston kitty libglfw3-dev libgl-dev libasound2-dev libv4l-dev
sudo apt install -y weston seatd kitty libglfw3-dev libgl-dev libasound2-dev libv4l-dev
.PHONY: setup-weston
setup-weston:
ln -fs $(PWD)/system/weston.ini $(HOME)/.config/weston.ini
.PHONY: setup-system-services
setup-system-services:
.PHONY: setup-rasp-config
setup-rasp-config:
if [ ! -z $(grep "include forge-invar.txt" "/boot/firmware/config.txt") ]; then sudo sh -c 'echo \"include forge-invar.txt\" >> /boot/firmware/config.txt'; fi
sudo cp -f $(PWD)/system/config.ini /boot/firmware/forge-invar.txt
if [ ! -z $(grep "vc4.tv_norm" "/boot/firmware/cmdline.txt") ]; then sudo sh -c 'echo \"vc4.tv_norm=PAL\" >> /boot/firmware/cmdline.txt'; fi
.PHONY: setup-services
setup-services:
sudo ln -fs $(PWD)/system/getty@tty1.service /etc/systemd/system/getty@tty1.service
sudo systemctl daemon-reload
sudo systemctl enable getty@tty1.service seatd.service
.PHONY: install
install: remove-passwd apt-install setup-weston setup-system-services
install: remove-passwd setup-rasp-config apt-install setup-weston setup-system-services
.PHONY: clean
clean: