[Buildroot] [PATCH v5 03/11] autobuild-run: add option --make-opts for custom Buildroot options

Thomas De Schampheleire patrickdepinguin at gmail.com
Sun Mar 1 20:42:34 UTC 2015


On Sat, Feb 28, 2015 at 8:29 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Thomas De Schampheleire,
>
> On Fri, 12 Dec 2014 21:04:48 +0100, Thomas De Schampheleire wrote:
>
>> +    cmd = ["timeout", str(MAX_DURATION), "make", "O=%s" % outputdir,
>> +            "-C", srcdir, "BR2_DL_DIR=%s" % dldir, "BR2_JLEVEL=%s" % njobs] \
>> +          + make_opts.split()
>
> This breaks badly when no make_opts are passed:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/multiprocessing/process.py", line 232, in _bootstrap
>     self.run()
>   File "/usr/lib/python2.6/multiprocessing/process.py", line 88, in run
>     self._target(*self._args, **self._kwargs)
>   File "./autobuild-run", line 660, in run_instance
>     ret = do_build(**kwargs)
>   File "./autobuild-run", line 471, in do_build
>     + kwargs['make_opts'].split()
> AttributeError: 'NoneType' object has no attribute 'split'
>

make-opts is given the empty string '' as default in the original code
I sent, and thus can be splitted without the above error. I guess you
are seeing this after making some other change?


More information about the buildroot mailing list