Skip to contentSkip to conversation

Remove dead qemu code from toplevel Makefile

PATCH In review Olaf Hering 2 participants 2 messages Oct 8, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove dead qemu code from toplevel Makefile

After commit b0f69ec5c71de1248d915c193b57c43e786857dd ("tools: Make qemu-xen-traditional build optional.") the existing make targets are wrapped in ifeq ($(CONF),y), but CONF is never set because config/Tools.mk is not included.

Drop the dead code. The same effect can be achieved by calling the make commands directly, after calling configure.

A better approach would be a simple, single 'make $something' which should be a wrapper around a targets in tools/Makefile that clones, updates and cleans the subprojects. That has to be worked out in a different patch.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>
---
 Makefile | 22 ----------------------
 1 file changed, 22 deletions(-)
Makefile +0 -22
index bf8028a..0355b49 100644
@@ -64,28 +64,6 @@ docs: dist-docs
 install-xen:
 	$(MAKE) -C xen install
 
-ifeq ($(CONFIG_QEMU_TRAD),y)
-QEMU_TRAD_DIR_TGT := tools/qemu-xen-traditional-dir
-
-tools/qemu-xen-traditional-dir:
-	$(MAKE) -C tools qemu-xen-traditional-dir-find
-
-.PHONY: tools/qemu-xen-traditional-dir-force-update
-tools/qemu-xen-traditional-dir-force-update:
-	$(MAKE) -C tools qemu-xen-traditional-dir-force-update
-endif
-
-ifeq ($(CONFIG_QEMU_XEN),y)
-QEMU_XEN_DIR_TGT := tools/qemu-xen-dir
-
-tools/qemu-xen-dir:
-	$(MAKE) -C tools qemu-xen-dir-find
-
-.PHONY: tools/qemu-xen-dir-force-update
-tools/qemu-xen-dir-force-update:
-	$(MAKE) -C tools qemu-xen-dir-force-update
-endif
-
 .PHONY: install-tools
 install-tools: $(QEMU_TRAD_DIR_TARGET) $(QEMU_XEN_DIR_TARGET)
 	$(MAKE) -C tools install
#1 lore raw
Quoted 13 lines · Olaf Hering

After commit b0f69ec5c71de1248d915c193b57c43e786857dd ("tools: Make qemu-xen-traditional build optional.") the existing make targets are wrapped in ifeq ($(CONF),y), but CONF is never set because config/Tools.mk is not included.

Drop the dead code. The same effect can be achieved by calling the make commands directly, after calling configure.

A better approach would be a simple, single 'make $something' which should be a wrapper around a targets in tools/Makefile that clones, updates and cleans the subprojects. That has to be worked out in a different patch.

Quoted 5 lines
Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>

Nothing can possibly be using these (at least not successfully), so acked + applied.