diff mbox

[v3,2/2] boot.S: Factor out kernel cmd-line from boot-loader

Message ID 20111209202410.21381.9723.stgit@ubuntu
State New
Headers show

Commit Message

Christoffer Dall Dec. 9, 2011, 8:24 p.m. UTC
From: Christoffer Dall <cdall@cs.columbia.edu>

The kernel command lines are set in the Makefile and config files now
anyway and depend on the board type settings in there, so there should
be no need to have yet another set of ifdefs in boot.S.

Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
---
 boot.S |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)
diff mbox

Patch

diff --git a/boot.S b/boot.S
index e1c8d78..4629734 100644
--- a/boot.S
+++ b/boot.S
@@ -142,30 +142,8 @@  atags:
 	@ ATAG_CMDLINE
 	.long	(1f - .) >> 2
 	.long	0x54410009
-#ifdef KCMD
-        /* User-specified command line always overrides */
+        /* The kernel boot command line is defined in the Make system */
         .asciz KCMD
-#else
-#ifdef MACH_MPS
-	.asciz	"rdinit=/bin/sh console=ttyAMA3 mem=4M earlyprintk"
-#elif defined(VEXPRESS)
-
-#ifdef USE_INITRD
-	.asciz	"console=ttyAMA0 mem=512M mem=512M@0x880000000 earlyprintk ip=192.168.27.200::192.168.27.1:255.255.255.0:angstrom:eth0:off"
-#else /* VEXPRESS && !USE_INITRD */
-	.asciz	"console=ttyAMA0 mem=512M mem=512M@0x880000000 earlyprintk root=/dev/nfs nfsroot=192.168.27.93:/srv/nfs_root,tcp rw ip=dhcp nfsrootdebug"
-#endif
-
-#else /* ! VEXPRESS && ! MACH_MPS */
-
-#ifdef USE_INITRD
-	.asciz	"console=ttyAMA0 mem=256M earlyprintk"
-#else
-	.asciz	"root=/dev/nfs nfsroot=10.1.77.43:/work/debootstrap/arm ip=dhcp console=ttyAMA0 mem=256M earlyprintk"
-#endif
-
-#endif
-#endif
 	.align	2
 1: