builderthread.py (97cdf64026c7d749dd7a5c0dbaba7a60a7292ac9) | builderthread.py (bb1501f2c22c979961b735db775605cccedd98f6) |
---|---|
1# Copyright (c) 2014 Google, Inc 2# 3# SPDX-License-Identifier: GPL-2.0+ 4# 5 6import errno 7import glob 8import os --- 163 unchanged lines hidden (view full) --- 172 if self.builder.checkout: 173 git_dir = os.path.join(work_dir, '.git') 174 gitutil.Checkout(commit.hash, git_dir, work_dir, 175 force=True) 176 else: 177 commit = 'current' 178 179 # Set up the environment and command line | 1# Copyright (c) 2014 Google, Inc 2# 3# SPDX-License-Identifier: GPL-2.0+ 4# 5 6import errno 7import glob 8import os --- 163 unchanged lines hidden (view full) --- 172 if self.builder.checkout: 173 git_dir = os.path.join(work_dir, '.git') 174 gitutil.Checkout(commit.hash, git_dir, work_dir, 175 force=True) 176 else: 177 commit = 'current' 178 179 # Set up the environment and command line |
180 env = self.toolchain.MakeEnvironment() | 180 env = self.toolchain.MakeEnvironment(self.builder.full_path) |
181 Mkdir(out_dir) 182 args = [] 183 cwd = work_dir 184 src_dir = os.path.realpath(work_dir) 185 if not self.builder.in_tree: 186 if commit_upto is None: 187 # In this case we are building in the original source 188 # directory (i.e. the current directory where buildman --- 90 unchanged lines hidden (view full) --- 279 print >>fd, 'arch', result.toolchain.arch 280 fd.write('%s' % result.return_code) 281 282 with open(os.path.join(build_dir, 'toolchain'), 'w') as fd: 283 print >>fd, 'gcc', result.toolchain.gcc 284 print >>fd, 'path', result.toolchain.path 285 286 # Write out the image and function size information and an objdump | 181 Mkdir(out_dir) 182 args = [] 183 cwd = work_dir 184 src_dir = os.path.realpath(work_dir) 185 if not self.builder.in_tree: 186 if commit_upto is None: 187 # In this case we are building in the original source 188 # directory (i.e. the current directory where buildman --- 90 unchanged lines hidden (view full) --- 279 print >>fd, 'arch', result.toolchain.arch 280 fd.write('%s' % result.return_code) 281 282 with open(os.path.join(build_dir, 'toolchain'), 'w') as fd: 283 print >>fd, 'gcc', result.toolchain.gcc 284 print >>fd, 'path', result.toolchain.path 285 286 # Write out the image and function size information and an objdump |
287 env = result.toolchain.MakeEnvironment() | 287 env = result.toolchain.MakeEnvironment(self.builder.full_path) |
288 lines = [] 289 for fname in ['u-boot', 'spl/u-boot-spl']: 290 cmd = ['%snm' % self.toolchain.cross, '--size-sort', fname] 291 nm_result = command.RunPipe([cmd], capture=True, 292 capture_stderr=True, cwd=result.out_dir, 293 raise_on_error=False, env=env) 294 if nm_result.stdout: 295 nm = self.builder.GetFuncSizesFile(result.commit_upto, --- 145 unchanged lines hidden --- | 288 lines = [] 289 for fname in ['u-boot', 'spl/u-boot-spl']: 290 cmd = ['%snm' % self.toolchain.cross, '--size-sort', fname] 291 nm_result = command.RunPipe([cmd], capture=True, 292 capture_stderr=True, cwd=result.out_dir, 293 raise_on_error=False, env=env) 294 if nm_result.stdout: 295 nm = self.builder.GetFuncSizesFile(result.commit_upto, --- 145 unchanged lines hidden --- |