]> git.proxmox.com Git - qemu.git/commitdiff
make_device_config.sh: Fix target path in generated dependency file
authorAndreas Färber <afaerber@suse.de>
Thu, 24 Jan 2013 15:47:55 +0000 (16:47 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:26:29 +0000 (13:26 +0000)
config-devices.mak.d is included from Makefile.target, i.e. from inside
the *-softmmu/ directory. It included the directory path, so never
applied to the actual ./config-devices.mak. Symptoms were spurious
build failures due to missing dependency on default-configs/pci.mak.

Fix this by using `basename` to strip the directory path.

Reported-by: Gerhard Wiesinger <lists@wiesinger.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
scripts/make_device_config.sh

index 5d14885dfc21f1ac2d285dc36d12a903e9a33ce0..0778fe2a420148934ee51a7378b9b82c8e8fa02e 100644 (file)
@@ -25,4 +25,4 @@ done
 process_includes $src > $dest
 
 cat $src $all_includes | grep -v '^include' > $dest
-echo "$1: $all_includes" > $dep
+echo "`basename $1`: $all_includes" > $dep