Skip to contentSkip to conversation

reboot-mode: new package

PATCH New Bartosz Golaszewski 1 participant 1 message Mar 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reboot-mode: new package

From: Bartosz Golaszewski <[email protected]>

Add a recipe for the simple program that allows to replicate android reboot's behavior on linux (e.g. reboot bootloader, reboot recovery) as well as test reboot mode drivers in the linux kernel.

---
 .../reboot-mode/reboot-mode_git.bb             | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-support/reboot-mode/reboot-mode_git.bb
meta-oe/recipes-support/reboot-mode/reboot-mode_git.bb new file +18 -0
new file mode 100644
index 000000000..20e77c63d
@@ -0,0 +1,18 @@
+SUMMARY = "Reboot the device to a specific mode."
+AUTHOR = "Daniele Debernardi <[email protected]>"
+
+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"
+
+do_compile() {
+    ${CC} ${CFLAGS} ${LDFLAGS} reboot-mode.c -o reboot-mode
+}
+
+do_install() {
+    install -D -m 0755 ${S}/reboot-mode ${D}${bindir}/reboot-mode
+}
Signature · 1 line
2.37.2