From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 7 Dec 2020 17:19:12 -0500 Subject: [PATCH v2 07/12] bootm: Split out bootargs environment reading / writing In-Reply-To: <20201105173349.903603-8-sjg@chromium.org> References: <20201105173349.903603-1-sjg@chromium.org> <20201105173349.903603-8-sjg@chromium.org> Message-ID: <20201207221912.GW32272@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Nov 05, 2020 at 10:33:43AM -0700, Simon Glass wrote: > 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: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: