summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorfaqiang.zhu <faqiang.zhu@nxp.com>2018-12-17 13:05:33 +0800
committerfaqiang.zhu <faqiang.zhu@nxp.com>2018-12-20 12:30:29 +0800
commit9da9e76a44ea11a67361225af459a9c80c7153a0 (patch)
treed437662f9ef7af824757aea4c0f2deec1d1a94aa /drivers
parent2ee4bd12140fa9a29ad1a7cb5016b78e4a4077f1 (diff)
MA-13785 remove the fastboot command of ucmd and acmd
To avoid end user executing uboot command through fastboot, the fastboot command of "ucmd" and "acmd" in the uboot to be flashed into non-volatile storage device is removed in this partch. Change-Id: I999b8688a53c2201d02979be68266afc110dfb15 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_fastboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index f217360403..2b8bd3abc1 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -3979,6 +3979,7 @@ static void cb_erase(struct usb_ep *ep, struct usb_request *req)
}
#endif
+#ifndef CONFIG_NOT_UUU_BUILD
static void cb_run_uboot_cmd(struct usb_ep *ep, struct usb_request *req)
{
char *cmd = req->buf;
@@ -4022,6 +4023,7 @@ static void cb_run_uboot_acmd(struct usb_ep *ep, struct usb_request *req)
fastboot_func->in_req->complete = do_acmd_complete;
fastboot_tx_write_str("OKAY");
}
+#endif
#ifdef CONFIG_AVB_SUPPORT
static void cb_set_active_avb(struct usb_ep *ep, struct usb_request *req)
@@ -4393,6 +4395,7 @@ static const struct cmd_dispatch_info cmd_dispatch_info[] = {
.cb = cb_set_active_avb,
},
#endif
+#ifndef CONFIG_NOT_UUU_BUILD
{
.cmd = "UCmd:",
.cb = cb_run_uboot_cmd,
@@ -4401,6 +4404,7 @@ static const struct cmd_dispatch_info cmd_dispatch_info[] = {
.cb = cb_run_uboot_acmd,
},
#endif
+#endif
{
.cmd = "reboot",
.cb = cb_reboot,