config: Fix for 'android' lookup in disk name
This patch modifies FSConfig.py to look for 'android' only in disk image name. Before this patch, 'android' was searched in full disk path. Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
parent
e5fbc67e16
commit
0c8e025c3b
1 changed files with 3 additions and 1 deletions
|
@ -286,7 +286,9 @@ def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None,
|
||||||
self.gic_cpu_addr = self.realview.gic.cpu_addr
|
self.gic_cpu_addr = self.realview.gic.cpu_addr
|
||||||
self.flags_addr = self.realview.realview_io.pio_addr + 0x30
|
self.flags_addr = self.realview.realview_io.pio_addr + 0x30
|
||||||
|
|
||||||
if mdesc.disk().lower().count('android'):
|
# Android disk images must have 'android' keyword in the disk name
|
||||||
|
# Look for 'android' in disk name and append /init to boot_osflags
|
||||||
|
if (os.path.split(mdesc.disk())[-1]).lower().count('android'):
|
||||||
cmdline += " init=/init "
|
cmdline += " init=/init "
|
||||||
self.boot_osflags = fillInCmdline(mdesc, cmdline)
|
self.boot_osflags = fillInCmdline(mdesc, cmdline)
|
||||||
self.realview.attachOnChipIO(self.membus, self.bridge)
|
self.realview.attachOnChipIO(self.membus, self.bridge)
|
||||||
|
|
Loading…
Reference in a new issue