Makefile: Add dependency to fix linux-user-only build
PATCH 1/1 Makefile: Add dependency to fix linux-user-only build
Make qemu-bridge-helper explicitly depend on $(GENERATED_HEADERS) so that it doesn't fail to build when we configured for linux-user targets only. (Build breakage introduced in commit 7b93fad.)
---
I suspect we could handle generated headers better in our makefile than having to scatter $(GENERATED_HEADERS) dependencies into almost everything (eg "%.o: $(GENERATED_HEADERS)" ??) but this is the minimal fix for the build breakage which we should apply for now I think.
Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
@@ -159,6 +159,7 @@ qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y) qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o +qemu-bridge-helper.o: $(GENERATED_HEADERS) fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/virtio-9p-marshal.o oslib-posix.o $(trace-obj-y) fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap
Signature · 1 line
1.7.1
Anthony Liguori
AppliedQuoted 5 lines · Peter Maydell
Make qemu-bridge-helper explicitly depend on $(GENERATED_HEADERS) so that it doesn't fail to build when we configured for linux-user targets only. (Build breakage introduced in commit 7b93fad.)
Signed-off-by Peter Maydell<[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 21 lines
---
I suspect we could handle generated headers better in our makefile than having to scatter $(GENERATED_HEADERS) dependencies into almost everything (eg "%.o: $(GENERATED_HEADERS)" ??) but this is the minimal fix for the build breakage which we should apply for now I think.Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Makefile +1
-0@@ -159,6 +159,7 @@ qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y) qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o +qemu-bridge-helper.o: $(GENERATED_HEADERS) fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/virtio-9p-marshal.o oslib-posix.o $(trace-obj-y) fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap