Esempio n. 1
0
def SetArch(arch):
  arch = FixArch(arch)
  env.set('ARCH', arch)

  nonsfi_nacl = False
  if arch.endswith('_NONSFI'):
    arch = arch[:-len('_NONSFI')]
    nonsfi_nacl = True
  env.set('BASE_ARCH', arch)
  env.setbool('NONSFI_NACL', nonsfi_nacl)
Esempio n. 2
0
 def __init__(self, e_type, e_machine, e_osabi, e_abiver):
     self.type = self.ELF_TYPES[e_type]
     self.machine = self.ELF_MACHINES[e_machine]
     self.osabi = self.ELF_OSABI[e_osabi]
     self.abiver = self.ELF_ABI_VER[e_abiver]
     self.arch = FixArch(self.machine)  # For convenience