diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-03-14 17:21:24 +0800 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-04-29 14:52:33 +0800 |
commit | 532d5e69a1642bd8d1c1f928d3a35b414bbce81b (patch) | |
tree | 2eed368a791e133d0a7d94b9e01b7f2e850e0e52 /common/main.c | |
parent | 77ca54d246cf90af88afe4eb93e63823b1de1e4a (diff) | |
download | u-boot-imx-532d5e69a1642bd8d1c1f928d3a35b414bbce81b.zip u-boot-imx-532d5e69a1642bd8d1c1f928d3a35b414bbce81b.tar.gz u-boot-imx-532d5e69a1642bd8d1c1f928d3a35b414bbce81b.tar.bz2 |
MLK-10774-7 Auto check if boot from usb
If boot from usb, reset environment to default value.
Auto apply mfgtools setting and boot mfgtools kernel.
Signed-off-by: Frank Li <Frank.li@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c index 2979fbe..62ab1ac 100644 --- a/common/main.c +++ b/common/main.c @@ -12,6 +12,10 @@ #include <cli.h> #include <version.h> +#ifdef is_boot_from_usb +#include <environment.h> +#endif + DECLARE_GLOBAL_DATA_PTR; /* |