Add new build target for ODROID Ethcer

Change-Id: Iadeda0cab0ddbe3b9eb3b992c9bed2f2a0bf1395
This commit is contained in:
Dongjin Kim
2021-03-11 18:12:13 +09:00
parent ada20903f5
commit 49da24c656
5 changed files with 35 additions and 0 deletions

8
custom/etcher/config Normal file
View File

@@ -0,0 +1,8 @@
BOARD=odroidn2
ARCH=arm64
DISTRO=focal
FLAVOUR=server
DEFAULT_USER=odroid
DEFAULT_PASSWD=odroid
ALLOW_ROOT_LOGIN=false
ISOIMAGE=true

View File

@@ -0,0 +1,10 @@
#!/bin/sh
PACKAGE=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/awesometic/odroid-etcher/releases | grep download_url | grep arm64 | sort -rV | head -1 | awk '{print $2}' | tr -d '"')
wget ${PACKAGE} -O /tmp/odroid-etcher.deb
dpkg -i /tmp/odroid-etcher.deb || true
apt install -y --no-install-recommends --fix-broken
chmod 644 /etc/systemd/system/odroid-etcher.service
systemctl enable odroid-etcher

View File

@@ -0,0 +1,13 @@
[Unit]
Description=ODROID Etcher
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/bin/xinit \
/usr/bin/odroid-etcher-electron
[Install]
WantedBy=multi-user.target

4
custom/etcher/packages Normal file
View File

@@ -0,0 +1,4 @@
curl
policykit-1
wget
xorg