configure: Allow builds without any system or user emulation
PATCH 1/1 configure: Allow builds without any system or user emulation
The old code aborted configure when no emulation target was selected. Even after removing the 'exit 1', it tried to read from STDIN when QEMU was configured with
configure' '--disable-user' '--disable-system'
This is fixed here.
---
This patch can be applied after 66d5499b3 was reverted.
It also works on top of 66d5499b3. In this case only Makefile needs modifications, and the configure part of the patch must be removed.
Regards
Stefan Weil
Makefile | 5 +++++ configure | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)
Makefile +5 -0
@@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) +ifeq ($(SUBDIR_DEVICES_MAK),) +config-all-devices.mak: + $(call quiet-command,echo '# no devices' > $@," GEN $@") +else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@") +endif -include $(SUBDIR_DEVICES_MAK_DEP)
configure +0 -4
@@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi -if test -z "$target_list" ; then - echo "No targets enabled" - exit 1 -fi # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yes
Signature · 1 line
1.7.0.4
Am 14.09.2012 19:02, schrieb Stefan Weil:
Quoted 49 lines
The old code aborted configure when no emulation target was selected. Even after removing the 'exit 1', it tried to read from STDIN when QEMU was configured with
configure' '--disable-user' '--disable-system'
This is fixed here.
Signed-off-by Stefan Weil<[email protected]>---
This patch can be applied after
66d5499b3was reverted.It also works on top of
66d5499b3. In this case onlyMakefileneeds modifications, and the configure part of the patch must be removed.Regards
Stefan Weil
Makefile | 5 +++++ configure | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)Makefile +5
-0@@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) +ifeq ($(SUBDIR_DEVICES_MAK),) +config-all-devices.mak: + $(call quiet-command,echo '# no devices'> $@," GEN $@") +else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u> $@," GEN $@") +endif -include $(SUBDIR_DEVICES_MAK_DEP)configure +0
-0
configure if test -z "$target_list" ; then · line 1336
Quoted 10 lines
configure +0
-4@@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi -if test -z "$target_list" ; then - echo "No targets enabled" - exit 1 -fi # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yes
Ping? 66d5499b3 was reverted, so my patch can be applied if nobody objects.
Thanks,
Stefan Weil
Quoted 60 lines · Stefan Weil
Am 14.09.2012 19:02, schrieb Stefan Weil:
Quoted 58 lines
The old code aborted configure when no emulation target was selected. Even after removing the 'exit 1', it tried to read from STDIN when QEMU was configured with
configure' '--disable-user' '--disable-system'
This is fixed here.
Signed-off-by Stefan Weil<[email protected]>---
This patch can be applied after
66d5499b3was reverted.It also works on top of
66d5499b3. In this case onlyMakefileneeds modifications, and the configure part of the patch must be removed.Regards
Stefan Weil
Makefile | 5 +++++ configure | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)Makefile +5
-1@@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) +ifeq ($(SUBDIR_DEVICES_MAK),) +config-all-devices.mak: + $(call quiet-command,echo '# no devices'> $@," GEN $@") +else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u> $@," GEN $@") +endif -include $(SUBDIR_DEVICES_MAK_DEP)configure +0
-4@@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi -if test -z "$target_list" ; then - echo "No targets enabled" - exit 1 -fi
Quoted 8 lines
configure if test -z "$target_list" ; then · line 1336
Quoted 4 lines
configure +0
-0# see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yesPing?
66d5499b3was reverted, so my patch can be applied if nobody objects.
Works fine here.
I think Daniel's original proposal to use some keyword for target-list is more convenient than having to use both --disable-user and --disable-system, but that's no big deal :-)
Laurent
Am 24.09.2012 12:57, schrieb Laurent Desnogues:
Quoted 70 lines · Stefan Weil
Quoted 60 lines
Am 14.09.2012 19:02, schrieb Stefan Weil:
Quoted 58 lines
The old code aborted configure when no emulation target was selected. Even after removing the 'exit 1', it tried to read from STDIN when QEMU was configured with
configure' '--disable-user' '--disable-system'
This is fixed here.
Signed-off-by Stefan Weil<[email protected]>---
This patch can be applied after
66d5499b3was reverted.It also works on top of
66d5499b3. In this case onlyMakefileneeds modifications, and the configure part of the patch must be removed.Regards
Stefan Weil
Makefile | 5 +++++ configure | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)Makefile +5
-1@@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) +ifeq ($(SUBDIR_DEVICES_MAK),) +config-all-devices.mak: + $(call quiet-command,echo '# no devices'> $@," GEN $@") +else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u> $@," GEN $@") +endif -include $(SUBDIR_DEVICES_MAK_DEP)configure +0
-4@@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi -if test -z "$target_list" ; then - echo "No targets enabled" - exit 1 -fiQuoted 8 lines
configure if test -z "$target_list" ; then · line 1336
Quoted 4 lines
configure +0
-0# see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yesPing?
66d5499b3was reverted, so my patch can be applied if nobody objects.
Quoted 8 lines
Works fine here.
I think Daniel's original proposal to use some keyword for target-list is more convenient than having to use both --disable-user and --disable-system, but that's no big deal :-)
Laurent
Thanks for testing. Support for --target-list= (empty target list instead of --disable-user --disable-system) also requires the same modifications and can be implemented by an additional patch.
Stefan
Anthony Liguori
AppliedQuoted 9 lines · Stefan Weil
The old code aborted configure when no emulation target was selected. Even after removing the 'exit 1', it tried to read from STDIN when QEMU was configured with
configure' '--disable-user' '--disable-system'
This is fixed here.
Signed-off-by Stefan Weil <[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 51 lines
---
This patch can be applied after
66d5499b3was reverted.It also works on top of
66d5499b3. In this case onlyMakefileneeds modifications, and the configure part of the patch must be removed.Regards
Stefan Weil
Makefile | 5 +++++ configure | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)Makefile +5
-0@@ -52,8 +52,13 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) +ifeq ($(SUBDIR_DEVICES_MAK),) +config-all-devices.mak: + $(call quiet-command,echo '# no devices' > $@," GEN $@") +else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@") +endif -include $(SUBDIR_DEVICES_MAK_DEP)configure +0
-4@@ -1331,10 +1331,6 @@ if test -z "$target_list" ; then else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi -if test -z "$target_list" ; then - echo "No targets enabled" - exit 1 -fi # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yesSignature · 1 line
1.7.0.4