def disks(self):
if self.disknames:
return [disk(diskname) for diskname in self.disknames]
- elif buildEnv['TARGET_ISA'] == 'x86':
- return [env.get('LINUX_IMAGE', disk('x86root.img'))]
- elif buildEnv['TARGET_ISA'] == 'arm':
- return [env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img'))]
- elif buildEnv['TARGET_ISA'] == 'sparc':
- return [env.get('LINUX_IMAGE', disk('disk.s10hw2'))]
else:
- print("Don't know what default disk image to use for %s ISA" %
- buildEnv['TARGET_ISA'])
- exit(1)
+ return []
def rootdev(self):
if self.root:
self.realview = platform_class()
self._bootmem = self.realview.bootmem
- if isinstance(self.realview, VExpress_EMM64):
- if os.path.split(mdesc.disks()[0])[-1] == 'linux-aarch32-ael.img':
- print("Selected 64-bit ARM architecture, updating default "
- "disk image...")
- mdesc.diskname = 'linaro-minimal-aarch64.img'
-
-
# Attach any PCI devices this platform supports
self.realview.attachPciDevices()
# the error message below. The disk can have any name now and
# doesn't need to include 'android' substring.
if (mdesc.disks() and
- os.path.split(mdesc.disks()[0])[-1]).lower().count('android'):
+ os.path.split(mdesc.disks()[0])[-1].lower().count('android')):
if 'android' not in mdesc.os_type():
fatal("It looks like you are trying to boot an Android " \
"platform. To boot Android, you must specify " \