Skip to contentSkip to conversation

tools/Makefile: fix qemu-xen-traditional build

PATCH In review Wei Liu 3 participants 7 messages Jan 25, 2015 – Jan 27, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 tools/Makefile: fix qemu-xen-traditional build

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
---
 tools/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/Makefile +1 -0
index 1ad7a5d..5d7a75f 100644
@@ -158,6 +158,7 @@ qemu-xen-traditional-dir-force-update: qemu-xen-traditional-dir-find
 subdir-all-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find
 	set -e; \
 		$(buildmakevars2shellvars); \
+		export CONFIG_BLKTAP1=n; \
 		cd qemu-xen-traditional-dir; \
 		$(QEMU_ROOT)/xen-setup \
 		$(IOEMU_EXTRA_LDFLAGS) \
Signature · 1 line
1.9.1
#1 lore raw
Quoted 3 lines · Wei Liu

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Another one. I suspect there is more like that in qemu-xen-traditional. Should I spent/waste my time to convert qemu-xen-traditional to handle options via configure instead of relying on variables from the Xen buildsystem? The same happend when my --prefix series was applied.

Olaf

Acked-by on v1 1/1
#4 lore raw
In reply to Wei Liu
Quoted 3 lines · Wei Liu

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Well spotted, which make invocation hits this path? make dist (what I test) didn't.

Quoted 3 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>

Should we be worried that the -all- and -install- targets are similar but not identical? Specifically one of them lack --extra-cflags?

Perhaps we should refactor those so the options are only given ones?

Quoted 16 lines
---
 tools/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/Makefile +1 -0
index 1ad7a5d..5d7a75f 100644
@@ -158,6 +158,7 @@ qemu-xen-traditional-dir-force-update: qemu-xen-traditional-dir-find
 subdir-all-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find
 	set -e; \
 		$(buildmakevars2shellvars); \
+		export CONFIG_BLKTAP1=n; \
 		cd qemu-xen-traditional-dir; \
 		$(QEMU_ROOT)/xen-setup \
 		$(IOEMU_EXTRA_LDFLAGS) \
author
#2 lore raw
In reply to Olaf Hering
Quoted 11 lines · Olaf Hering
Quoted 3 lines · Wei Liu

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Another one. I suspect there is more like that in qemu-xen-traditional. Should I spent/waste my time to convert qemu-xen-traditional to handle options via configure instead of relying on variables from the Xen buildsystem? The same happend when my --prefix series was applied.

qemu-xen-traditional's configure is quite ancient I don't think that's worth it.

Quoted 1 line

Olaf

#3 lore raw
Quoted 7 lines · Wei Liu
Quoted 6 lines · Olaf Hering
Quoted 3 lines · Wei Liu

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Quoted 8 lines
Quoted 5 lines

Another one. I suspect there is more like that in qemu-xen-traditional. Should I spent/waste my time to convert qemu-xen-traditional to handle options via configure instead of relying on variables from the Xen buildsystem? The same happend when my --prefix series was applied.

qemu-xen-traditional's configure is quite ancient I don't think that's worth it.

It's also not autoconf (neither is mainline qemu's AFAIK), it's just a hand written shell script...

Ian.

author
#5 lore raw
In reply to Ian Campbell
Quoted 8 lines · Ian Campbell
Quoted 3 lines · Wei Liu

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Well spotted, which make invocation hits this path? make dist (what I test) didn't.

make -C tools build.

Quoted 10 lines
Quoted 4 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>

Should we be worried that the -all- and -install- targets are similar but not identical? Specifically one of them lack --extra-cflags?

Perhaps nobody ever provides EXTRA_CFLAGS_QEMU_TRADITIONAL so nobody ever trips over that.

Quoted 2 lines

Perhaps we should refactor those so the options are only given ones?

This is a good idea. I can do another patch later.

Wei.

Quoted 17 lines
Quoted 16 lines
---
 tools/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/Makefile +1 -0
index 1ad7a5d..5d7a75f 100644
@@ -158,6 +158,7 @@ qemu-xen-traditional-dir-force-update: qemu-xen-traditional-dir-find
 subdir-all-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find
 	set -e; \
 		$(buildmakevars2shellvars); \
+		export CONFIG_BLKTAP1=n; \
 		cd qemu-xen-traditional-dir; \
 		$(QEMU_ROOT)/xen-setup \
 		$(IOEMU_EXTRA_LDFLAGS) \
#6 lore raw
Quoted 6 lines · Wei Liu
Quoted 5 lines · Ian Campbell
Quoted 3 lines · Wei Liu

In d9740237a ("tools: unhook blktap1 from the build and remove all references to it"), one spot was left unchanged, which leads to failure in building qemu-xen-traditional.

Quoted 12 lines
Quoted 3 lines

Well spotted, which make invocation hits this path? make dist (what I test) didn't.

make -C tools build.

Quoted 6 lines
Quoted 4 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>

And applied.

Quoted 7 lines
Quoted 4 lines

Should we be worried that the -all- and -install- targets are similar but not identical? Specifically one of them lack --extra-cflags?

Perhaps nobody ever provides EXTRA_CFLAGS_QEMU_TRADITIONAL so nobody ever trips over that.

Probably true, or at least those people who do use make dist etc.

Quoted 4 lines
Quoted 2 lines

Perhaps we should refactor those so the options are only given ones?

This is a good idea. I can do another patch later.

Thanks..