diff options
author | faqiang.zhu <faqiang.zhu@nxp.com> | 2018-12-17 13:05:33 +0800 |
---|---|---|
committer | faqiang.zhu <faqiang.zhu@nxp.com> | 2018-12-20 15:52:57 +0800 |
commit | b053775c03629d4b96e865ce66db89ebce643e91 (patch) | |
tree | a7bcb042499d7e9282a83119815bc9e89b330447 /drivers | |
parent | 9a3d4a6b8470980c4d4f938619a9d34a9282a69c (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 6dc6ced93b..8926a94e5c 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -3937,6 +3937,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; @@ -3980,6 +3981,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) @@ -4351,6 +4353,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, @@ -4359,6 +4362,7 @@ static const struct cmd_dispatch_info cmd_dispatch_info[] = { .cb = cb_run_uboot_acmd, }, #endif +#endif { .cmd = "reboot", .cb = cb_reboot, |