blob: c038966ba8c8ceefce49719393e86fe9becc91b1 [file] [log] [blame]
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05001SUMMARY = "Reboot the device to a specific mode."
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05002
3LICENSE = "GPL-3.0-or-later"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
5
6SRC_URI = "git://gitlab.com/postmarketOS/reboot-mode.git;protocol=http;branch=master"
7SRCREV = "84831b20512abd9033414ca5f5a023f333525335"
8
9S = "${WORKDIR}/git"
10
11do_compile() {
Patrick Williams8e7b46e2023-05-01 14:19:06 -050012 ${CC} ${CFLAGS} ${LDFLAGS} ${S}/reboot-mode.c -o ${B}/reboot-mode
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050013}
14
15do_install() {
Patrick Williams8e7b46e2023-05-01 14:19:06 -050016 install -D -m 0755 ${B}/reboot-mode ${D}${bindir}/reboot-mode
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050017}