Commit b053775c03629d4b96e865ce66db89ebce643e91
1 parent
9a3d4a6b84
Exists in
smarc-imx_v2018.03_4.14.78_1.0.0_ga
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>
Showing 17 changed files with 41 additions and 0 deletions Side-by-side Diff
- cmd/fastboot/Kconfig
- configs/imx6dlsabreautoandroid_defconfig
- configs/imx6dlsabresdandroid_defconfig
- configs/imx6qpsabreautoandroid_defconfig
- configs/imx6qpsabresdandroid_defconfig
- configs/imx6qsabreautoandroid_defconfig
- configs/imx6qsabresdandroid_defconfig
- configs/imx6sxsabresdandroid_defconfig
- configs/imx7dsabresdandroid_defconfig
- configs/imx7ulp_evk_android_defconfig
- configs/imx8mm_evk_android_defconfig
- configs/imx8mq_evk_android_defconfig
- configs/imx8qm_mek_android_defconfig
- configs/imx8qm_mek_androidauto_trusty_defconfig
- configs/imx8qxp_mek_android_defconfig
- configs/imx8qxp_mek_androidauto_trusty_defconfig
- drivers/usb/gadget/f_fastboot.c
cmd/fastboot/Kconfig
1 | 1 | comment "FASTBOOT" |
2 | 2 | |
3 | +config NOT_UUU_BUILD | |
4 | + bool "Disable features used by uuu" | |
5 | + help | |
6 | + This disables the features used by uuu, so that users can't | |
7 | + execute u-boot command other than fastboot throuth the fastboot | |
8 | + function provided by uuu. | |
9 | + | |
3 | 10 | menuconfig FASTBOOT |
4 | 11 | bool "Fastboot support" |
5 | 12 | depends on USB_GADGET |
configs/imx6dlsabreautoandroid_defconfig
configs/imx6dlsabresdandroid_defconfig
configs/imx6qpsabreautoandroid_defconfig
configs/imx6qpsabresdandroid_defconfig
configs/imx6qsabreautoandroid_defconfig
configs/imx6qsabresdandroid_defconfig
configs/imx6sxsabresdandroid_defconfig
configs/imx7dsabresdandroid_defconfig
configs/imx7ulp_evk_android_defconfig
configs/imx8mm_evk_android_defconfig
configs/imx8mq_evk_android_defconfig
configs/imx8qm_mek_android_defconfig
configs/imx8qm_mek_androidauto_trusty_defconfig
configs/imx8qxp_mek_android_defconfig
configs/imx8qxp_mek_androidauto_trusty_defconfig
drivers/usb/gadget/f_fastboot.c
... | ... | @@ -3937,6 +3937,7 @@ |
3937 | 3937 | } |
3938 | 3938 | #endif |
3939 | 3939 | |
3940 | +#ifndef CONFIG_NOT_UUU_BUILD | |
3940 | 3941 | static void cb_run_uboot_cmd(struct usb_ep *ep, struct usb_request *req) |
3941 | 3942 | { |
3942 | 3943 | char *cmd = req->buf; |
... | ... | @@ -3980,6 +3981,7 @@ |
3980 | 3981 | fastboot_func->in_req->complete = do_acmd_complete; |
3981 | 3982 | fastboot_tx_write_str("OKAY"); |
3982 | 3983 | } |
3984 | +#endif | |
3983 | 3985 | |
3984 | 3986 | #ifdef CONFIG_AVB_SUPPORT |
3985 | 3987 | static void cb_set_active_avb(struct usb_ep *ep, struct usb_request *req) |
... | ... | @@ -4351,6 +4353,7 @@ |
4351 | 4353 | .cb = cb_set_active_avb, |
4352 | 4354 | }, |
4353 | 4355 | #endif |
4356 | +#ifndef CONFIG_NOT_UUU_BUILD | |
4354 | 4357 | { |
4355 | 4358 | .cmd = "UCmd:", |
4356 | 4359 | .cb = cb_run_uboot_cmd, |
... | ... | @@ -4358,6 +4361,7 @@ |
4358 | 4361 | { .cmd ="ACmd:", |
4359 | 4362 | .cb = cb_run_uboot_acmd, |
4360 | 4363 | }, |
4364 | +#endif | |
4361 | 4365 | #endif |
4362 | 4366 | { |
4363 | 4367 | .cmd = "reboot", |