[Buildroot] [PATCH v3 2/3] autobuild-run: initial implementation of do_reproducible_build()
Arnout Vandecappelle
arnout at mind.be
Fri Jun 14 07:58:47 UTC 2019
On 13/06/2019 22:13, Yann E. MORIN wrote:
> Atharva, All,
>
> On 2019-06-11 18:04 +0530, Atharva Lele spake thusly:
[snip]
>> + # Clean up build 1
>> + f = open(os.path.join(outputdir, "logfile"), "w+")
>> + subprocess.call(["make", "O=%s" % outputdir, "-C", srcdir, "clean"], stdout=f, stderr=f)
>
> Since we do create a small Makefile wrapper in $(O), you could simplify
> this a little with:
>
> subprocess.call(["make", "-C", outputdir, "clean"], stdout=f, stderr=f)
>
> Ditto in the existing do_build() function. Can be improved upon when you
> introduce the Builder class.
This is bikeshedding, obviously, but I don't like that proposal. I think an
explicit O= -C is easier to read and understand.
Shorter is not better :-)
Regards,
Arnout
More information about the buildroot
mailing list