diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-06-03 17:10:40 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-06-24 09:13:36 +0100 |
commit | f9245e100f12f03338a4e7660879139defb4ae3e (patch) | |
tree | a28a5c2b7d8df6dd90ba794b187c116518263bc4 | |
parent | 744d3644181ddb16ef5944a0f9217e46961c8c84 (diff) | |
download | hqemu-f9245e100f12f03338a4e7660879139defb4ae3e.zip hqemu-f9245e100f12f03338a4e7660879139defb4ae3e.tar.gz |
configure: Don't create symlinks to nonexistent targets
When we create the symlinks to source tree files, don't create them
if the file is not actually present in the source tree; this will
happen if the file is in a git submodule that wasn't checked out.
This also avoids the odd effect where an in-source-tree configure
will end up creating the missing file as a symlink to itself.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3479,7 +3479,9 @@ for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.rom $source_p done mkdir -p $DIRS for f in $FILES ; do - test -e $f || symlink $source_path/$f $f + if [ -e "$source_path/$f" ] && ! [ -e "$f" ]; then + symlink "$source_path/$f" "$f" + fi done # temporary config to build submodules |