9
0
Fork 0
barebox/commands
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
..
Kconfig booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
Makefile add 'global' command 2012-05-14 08:57:01 +02:00
automount.c automount: optionally make directory 2012-04-15 16:50:54 +02:00
bmp.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
bootm.c bootm: fix initrd handling 2012-05-01 21:40:41 +02:00
cat.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
cd.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
clear.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
cp.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
crc.c Make errno a positive value 2012-05-14 08:35:54 +02:00
dfu.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
digest.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
echo.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
edit.c edit: Add proper screen size handling 2012-04-30 13:24:47 +02:00
exec.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
export.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
false.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
flash.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
global.c add 'global' command 2012-05-14 08:57:01 +02:00
go.c complete: add go and sleep support 2012-04-30 20:37:40 +08:00
gpio.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
help.c complete: add help complete support 2012-04-30 20:37:39 +08:00
i2c.c i2c: Added switch for allowing usage 16bit register addresses 2012-05-13 11:01:08 +02:00
insmod.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
iomem.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
led.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
linux16.c booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
linux_exec.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
loadb.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
loadenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
loads.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
login.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
ls.c Make errno a positive value 2012-05-14 08:35:54 +02:00
lsmod.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
magicvar.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
mem.c Make errno a positive value 2012-05-14 08:35:54 +02:00
meminfo.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
memtest.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
menu.c menu: fix non command management support 2012-04-23 19:51:06 +08:00
mkdir.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
mount.c fs: drop struct mtab_entry 2012-03-17 18:16:03 +01:00
nand.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
nandtest.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
net.c complete: add eth interface complete support 2012-04-30 20:37:40 +08:00
oftree.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
partition.c Removed duplicate definition for DEVFS_PARTITION_xxx 2012-05-13 21:58:19 +02:00
passwd.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
printenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
pwd.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
readline.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
reginfo.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
reset.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
rm.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
rmdir.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
saveenv.c Make errno a positive value 2012-05-14 08:35:54 +02:00
setenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
sleep.c complete: add go and sleep support 2012-04-30 20:37:40 +08:00
test.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
time.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
timeout.c timeout: allow to set a variable with the key pressed 2012-05-14 08:37:39 +02:00
trigger.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
true.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
ubi.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
uimage.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
umount.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
uncompress.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
usb.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
usbserial.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
version.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
xyzModem.c xyzModem.c: fix 'dummy' is used uninitialized in this function warning 2010-12-21 10:23:41 +01:00