diff options
Diffstat (limited to 'bmlutils')
-rw-r--r-- | bmlutils/bmlutils.c | 10 | ||||
-rw-r--r-- | bmlutils/bmlutils.h | 10 |
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_ |