summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/reboot-mode/reboot-mode_git.bb
blob: 5e0c6cd21cfb2a01980eab4156cdda1f359627bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUMMARY = "Reboot the device to a specific mode."

LICENSE = "GPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"

SRC_URI = "git://gitlab.com/postmarketOS/reboot-mode.git;protocol=http;branch=master"
SRCREV = "84831b20512abd9033414ca5f5a023f333525335"

S = "${WORKDIR}/git"

# Upstream repo has not made releases/tags after 1.0.0
UPSTREAM_CHECK_COMMITS = "1"

do_compile() {
    ${CC} ${CFLAGS} ${LDFLAGS} ${S}/reboot-mode.c -o ${B}/reboot-mode
}

do_install() {
    install -D -m 0755 ${B}/reboot-mode ${D}${bindir}/reboot-mode
}