9
0
Fork 0
barebox/arch/nios2/lib
Sascha Hauer ee4cab9e58 booting: more flexible Linux bootargs generation
We currently use the environment variable 'bootargs' to get the
Linux bootargs. This patch allows for a more flexible bootargs
generation using global variables. With it the Linux bootargs
are concatenated from multiple variables. This allows to replace
parts of the bootargs string without having to reconstruct it
completely.
With this bootargs can be constructed like:

global linux.bootargs.base="console=ttyS0,115200"
global linux.bootargs.ip="ip=dhcp"
global linux.mtdparts="physmap-flash.0:512K(nor0.barebox),-(root)"

This will then automatically be combined into a kernel bootargs
string during boot.

If the 'linux.bootargs.' variables are all empty the old standard
'bootargs' way will be used.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-05-14 09:16:31 +02:00
..
Makefile Nios2: Compile bootm only if needed 2011-07-06 10:25:39 +02:00
board.c fix malloc space sizes 2011-12-03 10:09:29 +01:00
bootm.c booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
cache.c Add Nios2 arch support to barebox 2011-03-30 23:22:35 +02:00
clock.c introduce io.h 2011-09-22 19:03:05 +02:00
early_printf.c introduce io.h 2011-09-22 19:03:05 +02:00
libgcc.c Add Nios2 arch support to barebox 2011-03-30 23:22:35 +02:00
longlong.h Add Nios2 arch support to barebox 2011-03-30 23:22:35 +02:00