Skip to content

Commit

Permalink
lk2nd: fastboot: misc: Add oem version command
Browse files Browse the repository at this point in the history
  • Loading branch information
TravMurav committed Aug 29, 2023
1 parent b8aeac4 commit 3e498e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lk2nd/fastboot/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <fastboot.h>
#include <platform.h>

#include <lk2nd/version.h>

#if WITH_DEBUG_LOG_BUF
static void cmd_oem_log(const char *arg, void *data, unsigned sz)
{
Expand All @@ -19,3 +21,10 @@ static void cmd_oem_reboot_edl(const char *arg, void *data, unsigned sz)
reboot_device(EMERGENCY_DLOAD);
}
FASTBOOT_REGISTER("oem reboot-edl", cmd_oem_reboot_edl);

static void cmd_oem_version(const char *arg, void *data, unsigned sz)
{
fastboot_info(LK2ND_VERSION);
fastboot_okay("");
}
FASTBOOT_REGISTER("oem version", cmd_oem_version);

0 comments on commit 3e498e0

Please sign in to comment.