blob: 504600a9864d41bb68f1c4a8a3484c88dece70a8 [file] [log] [blame]
from steps import step
import subprocess
import sh
class MachineSetup(step.Step):
def run_script(self):
"""Sets up the firmware machine environment used by the build"""
sh.cd(self.main_repo_name)
# command = "export MACHINE=machine0 && source setup machine0 && umask002 "
command = " && ".join([self.export_machine(), self.source_setup(), self.umask()])
subprocess.run(["bash", "-c", command])