]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
genrandconfig: pass outputdir and buildrootdir as arguments
authorArnout Vandecappelle <arnout@mind.be>
Fri, 21 Jul 2017 01:05:16 +0000 (03:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Jul 2017 20:44:19 +0000 (22:44 +0200)
commitb8288a5f437e53263e92cc27940391d2dea335dd
tree8df34edaee394b47be2fe867aa6eac8dbed1e206
parent9633b6ddd20a787303a9b7da357fe74448e190d1
genrandconfig: pass outputdir and buildrootdir as arguments

The --instance argument is just an artifact of genrandconfig's
history as part of autobuild-run. It is much more logical to pass
the output directory and the buildroot directory as arguments, with
sane defaults.

This also allows us to remove the hack of creating a symlink in the
instance directory if it doesn't exist yet.

Note that the default outputdir 'output' doesn't work yet, because in
that case Buildroot will put the config file in the buildroot directory
instead of the output directory. This will be fixed in a follow-up
patch.

After this change, the script should be called from autobuild-run as:

    subprocess.call([os.path.join(srcdir, "utils/genrandconfig"),
                     "-o", outputdir, "-b", srcdir,
                     "--toolchains-url", kwargs['toolchains_url']],
                    stdout=devnull, stderr=log)

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/genrandconfig