summaryrefslogtreecommitdiffstats
path: root/bmlutils
diff options
context:
space:
mode:
authorConn O'Griofa <connogriofa@gmail.com>2014-03-25 02:26:49 +0100
committerDees Troy <dees_troy@teamw.in>2014-10-07 21:00:29 +0200
commitd9201048c487ff528cd1e73583d5105cfa651aab (patch)
tree18621c3d97738b297c148d8b4f63adcb64ed09a6 /bmlutils
parentatime is access time, let's just use mtime (diff)
downloadandroid_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.tar
android_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.tar.gz
android_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.tar.bz2
android_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.tar.lz
android_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.tar.xz
android_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.tar.zst
android_bootable_recovery-d9201048c487ff528cd1e73583d5105cfa651aab.zip
Diffstat (limited to 'bmlutils')
-rw-r--r--bmlutils/bmlutils.c10
-rw-r--r--bmlutils/bmlutils.h10
2 files changed, 11 insertions, 9 deletions
diff --git a/bmlutils/bmlutils.c b/bmlutils/bmlutils.c
index 54b67f513..d59475eba 100644
--- a/bmlutils/bmlutils.c
+++ b/bmlutils/bmlutils.c
@@ -20,15 +20,7 @@
#include <signal.h>
#include <sys/wait.h>
-#define BML_UNLOCK_ALL 0x8A29 ///< unlock all partition RO -> RW
-
-#ifndef BOARD_BML_BOOT
-#define BOARD_BML_BOOT "/dev/block/bml7"
-#endif
-
-#ifndef BOARD_BML_RECOVERY
-#define BOARD_BML_RECOVERY "/dev/block/bml8"
-#endif
+#include <bmlutils.h>
#undef _PATH_BSHELL
#define _PATH_BSHELL "/sbin/sh"
diff --git a/bmlutils/bmlutils.h b/bmlutils/bmlutils.h
index e6ffeee57..1e85f0825 100644
--- a/bmlutils/bmlutils.h
+++ b/bmlutils/bmlutils.h
@@ -3,4 +3,14 @@
int format_rfs_device (const char *device, const char *path);
+#define BML_UNLOCK_ALL 0x8A29 ///< unlock all partition RO -> RW
+
+#ifndef BOARD_BML_BOOT
+#define BOARD_BML_BOOT "/dev/block/bml7"
+#endif
+
+#ifndef BOARD_BML_RECOVERY
+#define BOARD_BML_RECOVERY "/dev/block/bml8"
+#endif
+
#endif // BMLUTILS_H_