genrandconfig: fix the case when outputdir is 'output'
authorArnout Vandecappelle <arnout@mind.be>
Fri, 21 Jul 2017 01:05:18 +0000 (03:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Jul 2017 20:50:20 +0000 (22:50 +0200)
commit1e70470545c348c21f521fa6b7b4cf707d989aad
tree6b18b434dd5177122d4e67ae85295e8ef2ef5805
parent5638b10c22dc3c4ec67a4e602d38d097e8e16c69
genrandconfig: fix the case when outputdir is 'output'

When outputdir is 'output' (the default), genrandconfig didn't work
correctly because it expects the configfile in outputdir, while
Buildroot puts it in the buildroot directory.

Fix this by explicitly checking if outputdir == buildrootdir/output.
Because abspath is used for both paths, string comparison works
reliably.

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