diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-07-21 17:05:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-07-22 15:49:02 +0200 |
commit | d879de38e8430eeb9b37b7b6a2ac3341b0b029f7 (patch) | |
tree | a543e2e0d0bdbc2e5b2f4358fdb6fce77ca3c7a4 /scripts/genenv | |
parent | 6ffe2ec8cd37e432fdfc08f71cb9a46767ef1e39 (diff) | |
download | barebox-d879de38e8430eeb9b37b7b6a2ac3341b0b029f7.tar.gz barebox-d879de38e8430eeb9b37b7b6a2ac3341b0b029f7.tar.xz |
barebox_default_env: fix out of tree build
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/genenv')
-rwxr-xr-x | scripts/genenv | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/genenv b/scripts/genenv index 6a833b161d..de8b4f138d 100755 --- a/scripts/genenv +++ b/scripts/genenv @@ -1,17 +1,19 @@ #!/bin/bash # Generate the default environment file from a list of directories -# usage: genenv <basedir> <dir>... +# usage: genenv <basedir> <objdir> <dir>... # where <basedir> is the base directory for relative pathes in <dir> +# where <objdir> is the base directory for relative pathes for result +objtree=$2 cd $1 || exit 1 -shift +shift 2 tempdir=$(mktemp -d) for i in $*; do cp -r $i/* $tempdir done -scripts/bareboxenv -s $tempdir barebox_default_env +$objtree/scripts/bareboxenv -s $tempdir $objtree/barebox_default_env rm -r $tempdir |