Re: [PATCH 3/4] KVM: selftests: Add EXTRA_CFLAGS in top-level Makefile

From: Anup Patel
Date: Sun Nov 28 2021 - 22:47:08 EST


On Fri, Nov 26, 2021 at 9:45 PM Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:
>
> On 11/26/21 16:40, Anup Patel wrote:
> > We add EXTRA_CFLAGS to the common CFLAGS of top-level Makefile
> > which will allow users to pass additional compile-time flags such
> > as "-static".
>
> Is this just for debugging? I cannot understand if it's used in patch 4.

Yes, this is just for debugging.

I am using it to add selftests ELFs to any arbitrary initrd so that I can
try selftests on Spike, FPGA, or even HW simulators.

Regards,
Anup

>
> Paolo
>