MIPS: Fix and enhance built-in kernel command line
Currently, MIPS kernels silently overwrite kernel command-line parameters hardcoded in CONFIG_CMDLINE by the ones received from firmware. Therefore, using firmware remains the only reliable method to transfer the command-line parameters, which is not always desirable or convenient, and the CONFIG_CMDLINE option is thereby effectively rendered useless. This patch fixes the problem described above and introduces a more flexible scheme of handling the kernel command line, in a manner identical to what is currently used for x86. The default behavior, i.e. when CONFIG_CMDLINE_BOOL is not defined, retains the existing semantics, and firmware command-line arguments override the hardcoded ones. [Ralf: I fixed up all the defconfig files so the stay unaffected by this change.] Signed-off-by:Dmitri Vorobiev <dmitri.vorobiev@movial.com> Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/689/ Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/Kconfig.debug 41 additions, 4 deletionsarch/mips/Kconfig.debug
- arch/mips/configs/ar7_defconfig 2 additions, 0 deletionsarch/mips/configs/ar7_defconfig
- arch/mips/configs/bcm47xx_defconfig 1 addition, 1 deletionarch/mips/configs/bcm47xx_defconfig
- arch/mips/configs/bcm63xx_defconfig 2 additions, 0 deletionsarch/mips/configs/bcm63xx_defconfig
- arch/mips/configs/bigsur_defconfig 1 addition, 1 deletionarch/mips/configs/bigsur_defconfig
- arch/mips/configs/capcella_defconfig 2 additions, 0 deletionsarch/mips/configs/capcella_defconfig
- arch/mips/configs/cavium-octeon_defconfig 1 addition, 1 deletionarch/mips/configs/cavium-octeon_defconfig
- arch/mips/configs/cobalt_defconfig 1 addition, 1 deletionarch/mips/configs/cobalt_defconfig
- arch/mips/configs/db1000_defconfig 1 addition, 1 deletionarch/mips/configs/db1000_defconfig
- arch/mips/configs/db1100_defconfig 1 addition, 1 deletionarch/mips/configs/db1100_defconfig
- arch/mips/configs/db1200_defconfig 2 additions, 0 deletionsarch/mips/configs/db1200_defconfig
- arch/mips/configs/db1500_defconfig 1 addition, 1 deletionarch/mips/configs/db1500_defconfig
- arch/mips/configs/db1550_defconfig 1 addition, 1 deletionarch/mips/configs/db1550_defconfig
- arch/mips/configs/decstation_defconfig 1 addition, 1 deletionarch/mips/configs/decstation_defconfig
- arch/mips/configs/e55_defconfig 2 additions, 0 deletionsarch/mips/configs/e55_defconfig
- arch/mips/configs/fuloong2e_defconfig 1 addition, 1 deletionarch/mips/configs/fuloong2e_defconfig
- arch/mips/configs/ip22_defconfig 1 addition, 1 deletionarch/mips/configs/ip22_defconfig
- arch/mips/configs/ip27_defconfig 1 addition, 1 deletionarch/mips/configs/ip27_defconfig
- arch/mips/configs/ip28_defconfig 1 addition, 1 deletionarch/mips/configs/ip28_defconfig
- arch/mips/configs/ip32_defconfig 1 addition, 1 deletionarch/mips/configs/ip32_defconfig
Loading
Please register or sign in to comment