[Android-virt] [PATCH v2 2/2] boot.S: Factor out kernel cmd-line from boot-loader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Christoffer Dall <cdall at 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 at virtualopensystems.com>
---
 boot.S |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)

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 at 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 at 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:
 



[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux