x86: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading
authorStefan Reinauer <reinauer@chromium.org>
Sat, 3 Nov 2012 11:41:29 +0000 (11:41 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:42 +0000 (14:30 -0800)
commit05b71646a93839ad6fb1073f5e25ead928c1717d
tree7835c687820f0fecde7deea8ecbada485f66fb58
parent91d82a29e7aec12c97dcd4a4be1962f6d794b35c
x86: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading

This option delays loading of the environment until later, so that only the
default environment will be available to U-Boot.

This can address the security risk of untrusted data being used during boot.

When CONFIG_DELAY_ENVIRONMENT is defined, it is convenient to have a
run-time way of enabling loadinlg of the environment. Add this to the
fdt as /config/delay-environment.

Note: This patch depends on http://patchwork.ozlabs.org/patch/194342/

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
arch/x86/lib/init_wrappers.c