[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 11/11] disas: Add capstone as submodule
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v7 11/11] disas: Add capstone as submodule |
Date: |
Wed, 25 Oct 2017 10:23:45 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
Hi Richard,
>> On 10/21/2017 09:46 PM, Richard Henderson wrote:
>>> Do not require the submodule, but use it if present. Allow the
>>> command-line to override system or git submodule either way.
>>>
>>> Signed-off-by: Richard Henderson <address@hidden>
>>> ---
>>> Makefile | 13 +++++++++++++
>>> .gitmodules | 3 +++
>>> capstone | 1 +
>>> configure | 60
>>> +++++++++++++++++++++++++++++++++++++++++++++++++-----------
>>> 4 files changed, 66 insertions(+), 11 deletions(-)
>>> create mode 160000 capstone
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 9372742f86..beecc85bee 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -383,6 +383,19 @@ subdir-dtc: .git-submodule-status dtc/libfdt dtc/tests
>>> dtc/%: .git-submodule-status
>>> mkdir -p $@
>>>
>>> +# Overriding CFLAGS causes us to lose defines added in the sub-makefile.
>>> +# Not overriding CFLAGS leads to mis-matches between compilation modes.
>>> +# Therefore we replicate some of the logic in the sub-makefile.
>>
>> I'm having plenty of "missing-prototypes" warnings:
>
> Yes, we use lots of -Wfoo that upstream Capstone does not. I do strip
> -Werror,
> so at least it builds. Are you suggesting that I drop most of our extra
> -Wfoo?
Exactly. It's unlikely we try to modify capstone code in the submodule
to silent the warnings, there is enough QEMU work to do :P
I'd personally go with:
CAP_CFLAGS = $(CFLAGS) $(QEMU_CFLAGS) -w
At worst if there is an error while building capstone, it will still get
displayed.
> I suppose that's reasonable. We don't want our developers worrying about
> warnings coming from upstream code. If in fact you believe that most of our
> developers won't just install libcapstone-dev and be done?
This was my first reflex, but then you added the git feature and I just
wanted to test it.
Usually if I don't need a cutting edge feature, I try to use distrib
packages, to keep my environment closer to other developers.
A big part of QEMU developers uses Redhat/Fedora or Debian/Ubuntu and
there is an effort to verify QEMU still builds with those distribs using
the Travis CI. Now there even are VMs for BSD folks :)
So I'd not worry about distrib packages and these upstream warnings.
Regards,
Phil.
- [Qemu-devel] [PATCH v7 05/11] disas: Remove unused flags arguments, (continued)
- [Qemu-devel] [PATCH v7 05/11] disas: Remove unused flags arguments, Richard Henderson, 2017/10/21
- [Qemu-devel] [PATCH v7 06/11] disas: Support the Capstone disassembler library, Richard Henderson, 2017/10/21
- [Qemu-devel] [PATCH v7 07/11] i386: Support Capstone in disas_set_info, Richard Henderson, 2017/10/21
- [Qemu-devel] [PATCH v7 08/11] arm: Support Capstone in disas_set_info, Richard Henderson, 2017/10/21
- [Qemu-devel] [PATCH v7 09/11] ppc: Support Capstone in disas_set_info, Richard Henderson, 2017/10/21
- [Qemu-devel] [PATCH v7 10/11] disas: Remove monitor_disas_is_physical, Richard Henderson, 2017/10/21
- [Qemu-devel] [PATCH v7 11/11] disas: Add capstone as submodule, Richard Henderson, 2017/10/21
- Re: [Qemu-devel] [PATCH v7 00/11] Support the Capstone disassembler, no-reply, 2017/10/21
- Re: [Qemu-devel] [PATCH v7 00/11] Support the Capstone disassembler, no-reply, 2017/10/21
- Re: [Qemu-devel] [PATCH v7 00/11] Support the Capstone disassembler, no-reply, 2017/10/21