Skip to content

Commit 5abc1a4

Browse files
Sam Protsenkotrini
authored andcommitted
common: Move CONFIG_BOOTARGS to Kconfig
Also introduce CONFIG_USE_BOOTARGS option so we can control if CONFIG_BOOTARGS defined at all. Signed-off-by: Sam Protsenko <[email protected]> [trini: Resync r8a779[56]_ulcb, various ls10xx targets] Signed-off-by: Tom Rini <[email protected]>
1 parent aa6aaf9 commit 5abc1a4

File tree

418 files changed

+551
-544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

418 files changed

+551
-544
lines changed

README

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -699,11 +699,6 @@ The following options need to be configured:
699699
when no character is read on the console interface
700700
within "Boot Delay" after reset.
701701

702-
CONFIG_BOOTARGS
703-
This can be used to pass arguments to the bootm
704-
command. The value of CONFIG_BOOTARGS goes into the
705-
environment value "bootargs".
706-
707702
CONFIG_RAMBOOT and CONFIG_NFSBOOT
708703
The value of these goes into the environment as
709704
"ramboot" and "nfsboot" respectively, and can be used

common/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,22 @@ config BOOTDELAY
628628

629629
See doc/README.autoboot for details.
630630

631+
config USE_BOOTARGS
632+
bool "Enable boot arguments"
633+
help
634+
Provide boot arguments to bootm command. Boot arguments are specified
635+
in CONFIG_BOOTARGS option. Enable this option to be able to specify
636+
CONFIG_BOOTARGS string. If this option is disabled, CONFIG_BOOTARGS
637+
will be undefined and won't take any space in U-Boot image.
638+
639+
config BOOTARGS
640+
string "Boot arguments"
641+
depends on USE_BOOTARGS
642+
help
643+
This can be used to pass arguments to the bootm command. The value of
644+
CONFIG_BOOTARGS goes into the environment value "bootargs". Note that
645+
this value will also override the "chosen" node in FDT blob.
646+
631647
menu "Console"
632648

633649
config MENU

configs/M53017EVB_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x00000000
33
CONFIG_TARGET_M53017EVB=y
44
CONFIG_ENV_IS_IN_FLASH=y
55
CONFIG_BOOTDELAY=1
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/mtdblock3 rw rootfstype=jffs2"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_SYS_PROMPT="-> "
810
# CONFIG_CMD_SETEXPR is not set

configs/M54418TWR_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x47E00000
33
CONFIG_TARGET_M54418TWR=y
44
CONFIG_SYS_EXTRA_OPTIONS="CF_SBF,SYS_SERIAL_BOOT,SYS_INPUT_CLKSRC=50000000"
55
CONFIG_ENV_IS_IN_SPI_FLASH=y
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/nfs rw nfsroot=192.168.1.1:/tftpboot/192.168.1.2 ip=192.168.1.2:192.168.1.1:192.168.1.1: 255.255.255.0::eth0:off:rw console=ttyS0,115200"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_HUSH_PARSER=y
810
CONFIG_SYS_PROMPT="-> "

configs/M54418TWR_nand_mii_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x47E00000
33
CONFIG_TARGET_M54418TWR=y
44
CONFIG_SYS_EXTRA_OPTIONS="SYS_NAND_BOOT,SYS_INPUT_CLKSRC=25000000"
55
CONFIG_ENV_IS_NOWHERE=y
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=NAND:1M(u-boot)ro,7M(kernel)ro,-(jffs2) console=ttyS0,115200"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_HUSH_PARSER=y
810
CONFIG_SYS_PROMPT="-> "

configs/M54418TWR_nand_rmii_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x47E00000
33
CONFIG_TARGET_M54418TWR=y
44
CONFIG_SYS_EXTRA_OPTIONS="SYS_NAND_BOOT,SYS_INPUT_CLKSRC=50000000"
55
CONFIG_ENV_IS_NOWHERE=y
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=NAND:1M(u-boot)ro,7M(kernel)ro,-(jffs2) console=ttyS0,115200"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_HUSH_PARSER=y
810
CONFIG_SYS_PROMPT="-> "

configs/M54418TWR_nand_rmii_lowfreq_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x47E00000
33
CONFIG_TARGET_M54418TWR=y
44
CONFIG_SYS_EXTRA_OPTIONS="SYS_NAND_BOOT,LOW_MCFCLK,SYS_INPUT_CLKSRC=50000000"
55
CONFIG_ENV_IS_NOWHERE=y
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=NAND:1M(u-boot)ro,7M(kernel)ro,-(jffs2) console=ttyS0,115200"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_HUSH_PARSER=y
810
CONFIG_SYS_PROMPT="-> "

configs/M54418TWR_serial_mii_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x47E00000
33
CONFIG_TARGET_M54418TWR=y
44
CONFIG_SYS_EXTRA_OPTIONS="CF_SBF,SYS_SERIAL_BOOT,SYS_INPUT_CLKSRC=25000000"
55
CONFIG_ENV_IS_IN_SPI_FLASH=y
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/nfs rw nfsroot=192.168.1.1:/tftpboot/192.168.1.2 ip=192.168.1.2:192.168.1.1:192.168.1.1: 255.255.255.0::eth0:off:rw console=ttyS0,115200"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_HUSH_PARSER=y
810
CONFIG_SYS_PROMPT="-> "

configs/M54418TWR_serial_rmii_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_SYS_TEXT_BASE=0x47E00000
33
CONFIG_TARGET_M54418TWR=y
44
CONFIG_SYS_EXTRA_OPTIONS="CF_SBF,SYS_SERIAL_BOOT,SYS_INPUT_CLKSRC=50000000"
55
CONFIG_ENV_IS_IN_SPI_FLASH=y
6+
CONFIG_USE_BOOTARGS=y
7+
CONFIG_BOOTARGS="root=/dev/nfs rw nfsroot=192.168.1.1:/tftpboot/192.168.1.2 ip=192.168.1.2:192.168.1.1:192.168.1.1: 255.255.255.0::eth0:off:rw console=ttyS0,115200"
68
# CONFIG_DISPLAY_BOARDINFO is not set
79
CONFIG_HUSH_PARSER=y
810
CONFIG_SYS_PROMPT="-> "

configs/M54451EVB_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ CONFIG_TARGET_M54451EVB=y
44
CONFIG_SYS_EXTRA_OPTIONS="SYS_INPUT_CLKSRC=24000000"
55
CONFIG_ENV_IS_IN_FLASH=y
66
CONFIG_BOOTDELAY=1
7+
CONFIG_USE_BOOTARGS=y
8+
CONFIG_BOOTARGS="root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:2M(kernel)ro,-(jffs2)"
79
CONFIG_SYS_PROMPT="-> "
810
# CONFIG_CMD_LOADB is not set
911
# CONFIG_CMD_LOADS is not set

0 commit comments

Comments
 (0)