Skip to contentSkip to conversation

Makefile: Add missing dependency for system emulation (fix build)

PATCH Applied Stefan Weil 3 participants 5 messages Feb 27, 2014 – Mar 4, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Add missing dependency for system emulation (fix build)

Comment from Makefile.objs:

# block-obj-y is code used by both qemu system emulation and qemu-img

The system emulation needs this dependency (which was missing in Makefile), otherwise builds without tools (or massive parallel builds) fail.

---
 Makefile |    1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index a28a3c8..a0dafbf 100644
@@ -159,6 +159,7 @@ qemu-options.def: $(SRC_PATH)/qemu-options.hx
 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
 SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES))
 
+$(SOFTMMU_SUBDIR_RULES): $(block-obj-y)
 $(SOFTMMU_SUBDIR_RULES): config-all-devices.mak
 
 subdir-%:
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw

Il 27/02/2014 21:28, Stefan Weil ha scritto:

Quoted 18 lines

Comment from Makefile.objs:

# block-obj-y is code used by both qemu system emulation and qemu-img

The system emulation needs this dependency (which was missing in Makefile), otherwise builds without tools (or massive parallel builds) fail.

---
 Makefile |    1 +
 1 file changed, 1 insertion(+)
Makefile +0 -0
index a28a3c8..a0dafbf 100644

Makefile qemu-options.def: $(SRC_PATH)/qemu-options.hx · line 165

Quoted 7 lines
Makefile +1 -0
@@ -159,6 +159,7 @@ qemu-options.def: $(SRC_PATH)/qemu-options.hx
 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
 SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES))
 
+$(SOFTMMU_SUBDIR_RULES): $(block-obj-y)
 $(SOFTMMU_SUBDIR_RULES): config-all-devices.mak
 
 subdir-%:
#2 lore raw
Quoted 23 lines · Paolo Bonzini

Il 27/02/2014 21:28, Stefan Weil ha scritto:

Quoted 21 lines

Comment from Makefile.objs:

# block-obj-y is code used by both qemu system emulation and qemu-img

The system emulation needs this dependency (which was missing in Makefile),
otherwise builds without tools (or massive parallel builds) fail.

---
 Makefile |    1 +
 1 file changed, 1 insertion(+)
Makefile +0 -0
index a28a3c8..a0dafbf 100644
@@ -159,6 +159,7 @@ qemu-options.def: $(SRC_PATH)/qemu-options.hx
 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
 SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES))
 
Quoted 7 lines

Makefile qemu-options.def: $(SRC_PATH)/qemu-options.hx · line 165

Quoted 5 lines
Makefile +1 -0
+$(SOFTMMU_SUBDIR_RULES): $(block-obj-y)
 $(SOFTMMU_SUBDIR_RULES): config-all-devices.mak
 
 subdir-%:

Applied, thanks.

-- PMM

#3 lore raw
In reply to Stefan Weil

Am 27.02.2014 21:28, schrieb Stefan Weil:

Quoted 3 lines

Comment from Makefile.objs:

# block-obj-y is code used by both qemu system emulation and qemu-img

Hello Peter,

the comment which I cited above got lost when you applied the patch to QEMU master (maybe because it started with a #).

Regards
Stefan

Quoted 5 lines

The system emulation needs this dependency (which was missing in Makefile), otherwise builds without tools (or massive parallel builds) fail.

#4 lore raw
Quoted 10 lines · Stefan Weil

Am 27.02.2014 21:28, schrieb Stefan Weil:

Quoted 3 lines

Comment from Makefile.objs:

# block-obj-y is code used by both qemu system emulation and qemu-img

Hello Peter,

the comment which I cited above got lost when you applied the patch to QEMU master (maybe because it started with a #).

Yes, probably happened as part of a 'git commit --amend' when I added my signoff. Probably best to avoid starting lines in commit messages with a '#' :-)

thanks
-- PMM