Skip to contentSkip to conversation

build: include config-{, all-}devices.mak after defining CONFIG_SOFTMMU and CONFIG_USER_ONLY

PATCH Applied Paolo Bonzini 3 participants 3 messages Apr 16, 2013 – Apr 24, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: include config-{, all-}devices.mak after defining CONFIG_SOFTMMU and CONFIG_USER_ONLY

Moving the inclusions closer to Makefile, and before rules.mak, makes Makefile and Makefile.target more consistent with each other.

---
 Makefile        | 12 ++++++------
 Makefile.target |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
Makefile +6 -6
index 67f19f2..516ccbb 100644
@@ -19,6 +19,12 @@ seems to have been used for an in-tree build. You can fix this by running \
 endif
 endif
 
+CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_DIRS)),y)
+CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_DIRS)),y)
+CONFIG_ALL=y
+-include config-all-devices.mak
+-include config-all-disas.mak
+
 include $(SRC_PATH)/rules.mak
 config-host.mak: $(SRC_PATH)/configure
 	@echo $@ is out-of-date, running configure
@@ -107,12 +113,6 @@ endif
 defconfig:
 	rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
 
--include config-all-devices.mak
--include config-all-disas.mak
-CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_DIRS)),y)
-CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_DIRS)),y)
-CONFIG_ALL=y
-
 ifneq ($(wildcard config-host.mak),)
 include $(SRC_PATH)/Makefile.objs
 include $(SRC_PATH)/tests/Makefile
Makefile.target +1 -1
index 2bd6d14..121bcdc 100644
@@ -1,8 +1,8 @@
 # -*- Mode: makefile -*-
 
 include ../config-host.mak
-include config-devices.mak
 include config-target.mak
+include config-devices.mak
 include $(SRC_PATH)/rules.mak
 
 $(call set-vpath, $(SRC_PATH))
Signature · 1 line
1.8.1.4
Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · Paolo Bonzini

Moving the inclusions closer to Makefile, and before rules.mak, makes Makefile and Makefile.target more consistent with each other.

Patch fixes the build with --enable-tpm for me.

However, subject is too long, and the description should describe the breakage the patch fixes. Suggest:

build: Fix build with --enable-tpm

Broken in commit 3b8acc1.

Include config-{, all-}devices.mak after defining CONFIG_SOFTMMU and CONFIG_USER_ONLY. Moving the inclusions closer to Makefile, and before rules.mak, makes Makefile and Makefile.target more consistent with each other.