make_device_config.sh: Fix target path in generated dependency file
commit23bf49b5eca716aaad073f2b47613434e1515cb5
authorAndreas Färber <afaerber@suse.de>
Thu, 24 Jan 2013 15:47:55 +0000 (24 16:47 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:26:29 +0000 (26 13:26 +0000)
treea610250cbc08c4c8642747ebbd02ee79fc23182d
parent9f8863ebd7f584762a906881a62a04ac05ce4898
make_device_config.sh: Fix target path in generated dependency file

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