On 11/20/2014 12:10 PM, Simon Glass wrote: > Hi York, >> >> I think the key is to configure it, not build it. With the failure case, it >> doesn't build. I am thinking to find the equivalent to "make ARCH=power ...". >> How to dump that? > > Add a 'print' line to make() in builder.py: > > cmd = [self.gnu_make] + list(args) > print cmd > result = command.RunPipe([cmd], capture=True, capture_stderr=True, > cwd=cwd, raise_on_error=False, **kwargs) > return result >
Thanks. Adding the "print cmd" makes the issue disappeared. Removing it, the issue comes back. Add it back, it is gone again. I removed the working directory each time before building it. See the commands below $ !407 ./tools/buildman/buildman -b working_upstream_qoriq --count=1 --keep-outputs --force-build --force-reconfig MPC832XEMDS_HOST_66 -ve No section: 'make-flags' boards.cfg is up to date. Nothing to do. Building 1 commit for 1 boards (1 thread, 24 jobs per thread) Cloning repo for thread 0 0 0 0 /1 (starting) ['make', 'mrproper', 'O=build', '-j', '24'] ['make', 'O=build', '-j', '24', 'MPC832XEMDS_HOST_66_defconfig'] ['make', 'O=build', '-j', '24'] 01: arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing 1 0 0 /1 MPC832XEMDS_HOST_66 -bash-3.2$ git diff diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 8155c16..0411959 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -324,6 +324,7 @@ class Builder: kwargs: Arguments to pass to command.RunPipe() """ cmd = [self.gnu_make] + list(args) + print cmd result = command.RunPipe([cmd], capture=True, capture_stderr=True, cwd=cwd, raise_on_error=False, **kwargs) return result diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index a9cf68a..d9526e6 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -197,7 +197,7 @@ class BuilderThread(threading.Thread): src_dir = os.getcwd() else: args.append('O=build') - args.append('-s') +# args.append('-s') if self.builder.num_jobs is not None: args.extend(['-j', str(self.builder.num_jobs)]) config_args = ['%s_defconfig' % brd.target] -bash-3.2$ git checkout tools/buildman/builder.py -bash-3.2$ rm -rf ../working_upstream_qoriq/ -bash-3.2$ ./tools/buildman/buildman -b working_upstream_qoriq --count=1 --keep-outputs --force-build --force-reconfig MPC832XEMDS_HOST_66 -ve No section: 'make-flags' boards.cfg is up to date. Nothing to do. Building 1 commit for 1 boards (1 thread, 24 jobs per thread) Cloning repo for thread 0 01: arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing powerpc: + MPC832XEMDS_HOST_66 +make[1]: *** No rule to make target `../arch//cpu/u-boot.lds', needed by `u-boot.lds'. Stop. +make: *** [sub-make] Error 2 0 0 1 /1 MPC832XEMDS_HOST_66 -bash-3.2$ vi tools/buildman/builder.py -bash-3.2$ rm -rf ../working_upstream_qoriq/-bash-3.2$ ./tools/buildman/buildman -b working_upstream_qoriq --count=1 --keep-outputs --force-build --force-reconfig MPC832XEMDS_HOST_66 -ve No section: 'make-flags' boards.cfg is up to date. Nothing to do. Building 1 commit for 1 boards (1 thread, 24 jobs per thread) Cloning repo for thread 0 0 0 0 /1 (starting) ['make', 'mrproper', 'O=build', '-j', '24'] ['make', 'O=build', '-j', '24', 'MPC832XEMDS_HOST_66_defconfig'] ['make', 'O=build', '-j', '24'] 01: arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing 1 0 0 /1 MPC832XEMDS_HOST_66 -bash-3.2$ I don't see ARCH defined anywhere. York _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot