qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
@ 2020-07-23 13:22 Thomas Huth
  2020-07-23 13:42 ` Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas Huth @ 2020-07-23 13:22 UTC (permalink / raw)
  To: Guan Xuetao, qemu-devel
  Cc: qemu-trivial, Richard Henderson, Philippe Mathieu-Daudé

The dependency on curses has been removed in commit c7a856b42e403e2b
("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
So we can remove the related lines in the Makefile now, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 target/unicore32/Makefile.objs | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/target/unicore32/Makefile.objs b/target/unicore32/Makefile.objs
index 35d8bf530d..6b41b1e9ef 100644
--- a/target/unicore32/Makefile.objs
+++ b/target/unicore32/Makefile.objs
@@ -2,7 +2,3 @@ obj-y += translate.o op_helper.o helper.o cpu.o
 obj-y += ucf64_helper.o
 
 obj-$(CONFIG_SOFTMMU) += softmmu.o
-
-# Huh? Uses curses directly instead of using ui/console.h interfaces ...
-helper.o-cflags := $(CURSES_CFLAGS)
-helper.o-libs := $(CURSES_LIBS)
-- 
2.18.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
  2020-07-23 13:22 [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs Thomas Huth
@ 2020-07-23 13:42 ` Philippe Mathieu-Daudé
  2020-07-23 13:45   ` Thomas Huth
  2020-07-23 14:50 ` Peter Maydell
  2020-07-25  0:59 ` Guan Xuetao
  2 siblings, 1 reply; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-23 13:42 UTC (permalink / raw)
  To: Thomas Huth, Guan Xuetao, qemu-devel; +Cc: qemu-trivial, Richard Henderson

On 7/23/20 3:22 PM, Thomas Huth wrote:
> The dependency on curses has been removed in commit c7a856b42e403e2b
> ("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
> So we can remove the related lines in the Makefile now, too.

Don't we also need to remove all uses of CONFIG_CURSES to
be complete? Eventually display a warning with --(en|dis)able-curses
is used.

> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  target/unicore32/Makefile.objs | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/target/unicore32/Makefile.objs b/target/unicore32/Makefile.objs
> index 35d8bf530d..6b41b1e9ef 100644
> --- a/target/unicore32/Makefile.objs
> +++ b/target/unicore32/Makefile.objs
> @@ -2,7 +2,3 @@ obj-y += translate.o op_helper.o helper.o cpu.o
>  obj-y += ucf64_helper.o
>  
>  obj-$(CONFIG_SOFTMMU) += softmmu.o
> -
> -# Huh? Uses curses directly instead of using ui/console.h interfaces ...
> -helper.o-cflags := $(CURSES_CFLAGS)
> -helper.o-libs := $(CURSES_LIBS)
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
  2020-07-23 13:42 ` Philippe Mathieu-Daudé
@ 2020-07-23 13:45   ` Thomas Huth
  2020-07-23 15:11     ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Huth @ 2020-07-23 13:45 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, Guan Xuetao, qemu-devel
  Cc: qemu-trivial, Richard Henderson

On 23/07/2020 15.42, Philippe Mathieu-Daudé wrote:
> On 7/23/20 3:22 PM, Thomas Huth wrote:
>> The dependency on curses has been removed in commit c7a856b42e403e2b
>> ("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
>> So we can remove the related lines in the Makefile now, too.
> 
> Don't we also need to remove all uses of CONFIG_CURSES to
> be complete? Eventually display a warning with --(en|dis)able-curses
> is used.

Which ones do you mean? I can't find any other CONFIG_CURSES anymore in
the target/ folder...

Or do you also plan to get rid of ui/curses.c ??? ... that's certainly
another story.

 Thomas



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
  2020-07-23 13:22 [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs Thomas Huth
  2020-07-23 13:42 ` Philippe Mathieu-Daudé
@ 2020-07-23 14:50 ` Peter Maydell
  2020-07-23 15:19   ` Thomas Huth
  2020-07-25  0:59 ` Guan Xuetao
  2 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2020-07-23 14:50 UTC (permalink / raw)
  To: Thomas Huth
  Cc: QEMU Trivial, Guan Xuetao, Richard Henderson, QEMU Developers,
	Philippe Mathieu-Daudé

On Thu, 23 Jul 2020 at 14:23, Thomas Huth <thuth@redhat.com> wrote:
>
> The dependency on curses has been removed in commit c7a856b42e403e2b
> ("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
> So we can remove the related lines in the Makefile now, too.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

Another, unrelated, CONFIG_CURSES oddity:
hw/input/virtio-input-hid.c has an "#undef CONFIG_CURSES"
before it includes ui/console.h. But that header file
doesn't do anything different if CONFIG_CURSES is defined,
so I think the undef is now useless and can be removed.

thanks
-- PMM


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
  2020-07-23 13:45   ` Thomas Huth
@ 2020-07-23 15:11     ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-23 15:11 UTC (permalink / raw)
  To: Thomas Huth, Guan Xuetao, qemu-devel; +Cc: qemu-trivial, Richard Henderson

On 7/23/20 3:45 PM, Thomas Huth wrote:
> On 23/07/2020 15.42, Philippe Mathieu-Daudé wrote:
>> On 7/23/20 3:22 PM, Thomas Huth wrote:
>>> The dependency on curses has been removed in commit c7a856b42e403e2b
>>> ("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
>>> So we can remove the related lines in the Makefile now, too.
>>
>> Don't we also need to remove all uses of CONFIG_CURSES to
>> be complete? Eventually display a warning with --(en|dis)able-curses
>> is used.
> 
> Which ones do you mean? I can't find any other CONFIG_CURSES anymore in
> the target/ folder...
> 
> Or do you also plan to get rid of ui/curses.c ??? ... that's certainly
> another story.

Ah indeed.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
  2020-07-23 14:50 ` Peter Maydell
@ 2020-07-23 15:19   ` Thomas Huth
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2020-07-23 15:19 UTC (permalink / raw)
  To: Peter Maydell
  Cc: QEMU Trivial, Guan Xuetao, Richard Henderson, QEMU Developers,
	Philippe Mathieu-Daudé

On 23/07/2020 16.50, Peter Maydell wrote:
> On Thu, 23 Jul 2020 at 14:23, Thomas Huth <thuth@redhat.com> wrote:
>>
>> The dependency on curses has been removed in commit c7a856b42e403e2b
>> ("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
>> So we can remove the related lines in the Makefile now, too.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
> 
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> 
> Another, unrelated, CONFIG_CURSES oddity:
> hw/input/virtio-input-hid.c has an "#undef CONFIG_CURSES"
> before it includes ui/console.h. But that header file
> doesn't do anything different if CONFIG_CURSES is defined,
> so I think the undef is now useless and can be removed.

There used to be some curses stuff in that header, but it has been
removed more than two years ago (see commit b0766612d16da18). So yes, I
think you're right, that #undef CONFIG_CURSES can be removed now. Care
to send a patch?

 Thomas



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
  2020-07-23 13:22 [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs Thomas Huth
  2020-07-23 13:42 ` Philippe Mathieu-Daudé
  2020-07-23 14:50 ` Peter Maydell
@ 2020-07-25  0:59 ` Guan Xuetao
  2 siblings, 0 replies; 7+ messages in thread
From: Guan Xuetao @ 2020-07-25  0:59 UTC (permalink / raw)
  To: thomas huth
  Cc: qemu-trivial, richard henderson, qemu-devel, philippe mathieu-daudé

That's OK for unicore32 target.

Acked-by: Guan Xuetao <gxt@pku.edu.cn>


> -----原始邮件-----
> 发件人: "Thomas Huth" <thuth@redhat.com>
> 发送时间: 2020-07-23 21:22:19 (星期四)
> 收件人: "Guan Xuetao" <gxt@mprc.pku.edu.cn>, qemu-devel@nongnu.org
> 抄送: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-trivial@nongnu.org, "Richard Henderson" <richard.henderson@linaro.org>
> 主题: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs
> 
> The dependency on curses has been removed in commit c7a856b42e403e2b
> ("target/unicore32: Prefer qemu_semihosting_log_out() over curses").
> So we can remove the related lines in the Makefile now, too.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  target/unicore32/Makefile.objs | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/target/unicore32/Makefile.objs b/target/unicore32/Makefile.objs
> index 35d8bf530d..6b41b1e9ef 100644
> --- a/target/unicore32/Makefile.objs
> +++ b/target/unicore32/Makefile.objs
> @@ -2,7 +2,3 @@ obj-y += translate.o op_helper.o helper.o cpu.o
>  obj-y += ucf64_helper.o
>  
>  obj-$(CONFIG_SOFTMMU) += softmmu.o
> -
> -# Huh? Uses curses directly instead of using ui/console.h interfaces ...
> -helper.o-cflags := $(CURSES_CFLAGS)
> -helper.o-libs := $(CURSES_LIBS)
> -- 
> 2.18.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-25  1:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 13:22 [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs Thomas Huth
2020-07-23 13:42 ` Philippe Mathieu-Daudé
2020-07-23 13:45   ` Thomas Huth
2020-07-23 15:11     ` Philippe Mathieu-Daudé
2020-07-23 14:50 ` Peter Maydell
2020-07-23 15:19   ` Thomas Huth
2020-07-25  0:59 ` Guan Xuetao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).