def build(self): pm = bs.ProjectMap() if not os.path.exists(self._build_dir): os.makedirs(self._build_dir) savedir = os.getcwd() os.chdir(self._build_dir) cflag = "-m32" cxxflag = "-m32" if self._options.arch == "m64": cflag = "-m64" cxxflag = "-m64" env = {"CC":"ccache gcc", "CXX":"ccache g++", "CFLAGS":cflag, "CXXFLAGS":cxxflag} self._options.update_env(env) bs.run_batch_command(["cmake", "-GNinja", self._src_dir] + self._extra_definitions, env=env) bs.run_batch_command(["ninja","-j" + str(bs.cpu_count())], env=env) bs.run_batch_command(["mkdir", "-p", pm.build_root() + "/bin"]) bs.run_batch_command(["cp", "-a", self._build_dir + "/cts", pm.build_root() + "/bin"]) os.chdir(savedir) bs.Export().export()
def build(self): options = ["--enable-glx-tls", "--enable-gles1", "--enable-gles2", "--with-dri-drivers=i965,i915", # disable video drivers: # bbe6f7f865cd4316b5f885507ee0b128a20686eb # caused build failure unrelated to intel mesa # team. "--disable-xvmc", "--disable-vdpau", # gallium tested with mesa-buildtest "--without-gallium-drivers"] save_dir = os.getcwd() bd = self._build_dir + "/skl" if not os.path.exists(bd): os.makedirs(bd) os.chdir(bd) flags = " ".join(self._flags) flags = ["CFLAGS=-O2 " + flags, "CXXFLAGS=-O2 " + flags, "CC=ccache gcc", "CXX=ccache g++"] cmd = [self._src_dir + "/autogen.sh"] + flags + options bs.run_batch_command(cmd) bs.run_batch_command(["make", "-j", str(bs.cpu_count()), "install"], env={"DESTDIR" : "/tmp/build_root/" + self.opts.arch + "/skl"} ) os.chdir(save_dir) bs.Export().export_perf()
def build(self): options = ["--enable-glx-tls", "--enable-gles1", "--enable-gles2", "--with-dri-drivers=i965,i915", # disable video drivers: # bbe6f7f865cd4316b5f885507ee0b128a20686eb # caused build failure unrelated to intel mesa # team. "--disable-xvmc", "--disable-vdpau", # gallium tested with mesa-buildtest "--without-gallium-drivers"] save_dir = os.getcwd() for hw in ["skl", "bdw", "bsw"]: bd = self._build_dir + "/" + hw if not os.path.exists(bd): os.makedirs(bd) os.chdir(bd) flags = " ".join(self._flags[hw]) flags = ["CFLAGS=-O2 " + flags, "CXXFLAGS=-O2 " + flags, "CC=ccache gcc", "CXX=ccache g++"] cmd = [self._src_dir + "/autogen.sh"] + flags + options bs.run_batch_command(cmd) bs.run_batch_command(["make", "-j", str(bs.cpu_count()), "install"], env={"DESTDIR" : "/tmp/build_root/" + self.opts.arch + "/" + hw} ) os.chdir(save_dir) bs.Export().export_perf()
def build(self): save_dir = os.getcwd() os.chdir(self.src_dir) # scons build is broken, will occasionally fail if temporaries # are still around. Use git's nuclear clean method instead of # the clean targets. bs.run_batch_command(["git", "clean", "-dfx"]) bs.run_batch_command(["scons", "-j", str(bs.cpu_count())]) bs.run_batch_command(["git", "clean", "-dfx"]) os.chdir(save_dir)
def build(self): save_dir = os.getcwd() os.chdir(self.src_dir) # scons build is broken, will occasionally fail if temporaries # are still around. Use git's nuclear clean method instead of # the clean targets. bs.run_batch_command(["git", "clean", "-dfx"]) env = {} bs.Options().update_env(env) bs.run_batch_command(["scons", "-j", str(bs.cpu_count())], env=env) bs.run_batch_command(["git", "clean", "-dfx"]) os.chdir(save_dir)