[Buildroot] [PATCH v2] kvm-unit-tests: test for rdseed/rdrand

Matthew Weber matthew.weber at rockwellcollins.com
Sat Jan 13 02:21:56 UTC 2018


Thomas,

On Fri, Jan 12, 2018 at 4:17 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
>>
>>>> kvm-unit-tests kvm-unit-tests-20171020 Configuring
> cd /home/test/buildroot/output/build/kvm-unit-tests-kvm-unit-tests-20171020 && ./configure --arch="x86_64" --processor="" --endian="little"
> Checking for rdseed/rdrand... No.
>
> but the CFLAGS you assign have no effect. And indeed you assign CFLAGS,
> but there's nothing that actually uses the CFLAGS set by the configure
> script.
>
> In fact, you can perfectly test this on your side: just introduce a
> stupid typo in the rdseed test program that makes it fail to build
> unconditionally, and verify that the NO_RDSEEDRAND define really exists
> when the C file is built.
>

Ah shoot, correct they force CFLAGS to empty.  Fixed in v2 and I typo
tested it successfully.
https://patchwork.ozlabs.org/patch/860274/

Matt



More information about the buildroot mailing list