Skip to contentSkip to conversation

make_device_config.sh: Fix target path in generated dependency file

PATCH In review Andreas Färber 3 participants 5 messages Jun 7, 2012 – Dec 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 dependency issues with default-configs/pci.mak.

Fix by using basename to strip the directory path.

---
Seems I forgot to send this out before 1.1...

 scripts/make_device_config.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/make_device_config.sh +1 -1
index 5d14885..0778fe2 100644
@@ -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
Signature · 1 line
1.7.7
#1 lore raw

Has it been applied to anything? I don't think so. Is it still needed?

Thanks,

/mjt

Quoted 25 lines · Andreas Färber

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 dependency issues with default-configs/pci.mak.

Fix by using basename to strip the directory path.

---
Seems I forgot to send this out before 1.1...

 scripts/make_device_config.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/make_device_config.sh +1 -1
index 5d14885..0778fe2 100644
@@ -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
#2 lore raw

Am 18.09.2012 14:29, schrieb Michael Tokarev:

Quoted 2 lines

Has it been applied to anything? I don't think so. Is it still needed?

Not in qemu.git yet, still applicable AFAICT. CC'ing Paolo.

/-F

Quoted 32 lines

Thanks,

/mjt

Quoted 25 lines · Andreas Färber

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 dependency issues with default-configs/pci.mak.

Fix by using basename to strip the directory path.

---
Seems I forgot to send this out before 1.1...

 scripts/make_device_config.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/make_device_config.sh +1 -1
index 5d14885..0778fe2 100644
@@ -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
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#3 lore raw

Ping?

/mjt

Quoted 42 lines · Andreas Färber

Am 18.09.2012 14:29, schrieb Michael Tokarev:

Quoted 2 lines

Has it been applied to anything? I don't think so. Is it still needed?

Not in qemu.git yet, still applicable AFAICT. CC'ing Paolo.

/-F

Quoted 32 lines

Thanks,

/mjt

Quoted 25 lines · Andreas Färber

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 dependency issues with default-configs/pci.mak.

Fix by using basename to strip the directory path.

---
Seems I forgot to send this out before 1.1...

 scripts/make_device_config.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/make_device_config.sh +1 -1
index 5d14885..0778fe2 100644
@@ -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
#4 lore raw
Quoted 1 line · Michael Tokarev

Ping?

Ping.

Fix still applicable for 1.3, also looking to pull it in for 1.2.2.

Quoted 48 lines

/mjt

Quoted 42 lines · Andreas Färber

Am 18.09.2012 14:29, schrieb Michael Tokarev:

Quoted 2 lines

Has it been applied to anything? I don't think so. Is it still needed?

Not in qemu.git yet, still applicable AFAICT. CC'ing Paolo.

/-F

Quoted 32 lines

Thanks,

/mjt

Quoted 25 lines · Andreas Färber

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 dependency issues with default-configs/pci.mak.

Fix by using basename to strip the directory path.

---
Seems I forgot to send this out before 1.1...

 scripts/make_device_config.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/make_device_config.sh +1 -1
index 5d14885..0778fe2 100644
@@ -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