Skip to content
Commit b6386f38 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

bootm: Split out bootargs environment reading / writing



At present bootm_process_cmdline_env() reads the 'bootargs' variable and
then writes it back afterwards. This is painful for tests, which would
rather use a simple buffer.

It is also useful for zimage to use a buffer, since it does not actually
put the Linux command line in the bootargs variable.

Refactor the existing code into two pieces. One handles reading and
writing the environment variable, as well as allocating a buffer for use
by the rest of the code, which now operates on a buffer.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 6cd92b1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment