genenv: fix tempdir creation when target is a relative path
when $target is a path relative to $objtree the script fails.
This is because we cd to $basedir and then copy to $tempdir which
then is no longer valid. Fix this by converting $tempdir to an
absolute path first.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Christoph Fritz <chf.fritz@googlemail.com>
1 parent 0af79fb commit 49059486958c2f43a134ec08210c10cee209f596
@Sascha Hauer Sascha Hauer authored on 28 Apr 2014
Showing 1 changed file
View
scripts/genenv