Re: [PATCH] selftest/vDSO: Fix cross build for the random tests

2024-08-30 Thread Jason A. Donenfeld
On Fri, Aug 30, 2024 at 5:42 PM Mark Brown wrote: > > On Fri, Aug 30, 2024 at 05:30:07PM +0200, Jason A. Donenfeld wrote: > > On Fri, Aug 30, 2024 at 03:06:35PM +0100, Mark Brown wrote: > > > > The x86_64 build is still broken for me because nothing installs > > > tools/arch/x86_64/vdso/vgetrandom

Re: [PATCH] selftest/vDSO: Fix cross build for the random tests

2024-08-30 Thread Mark Brown
On Fri, Aug 30, 2024 at 05:34:13PM +0200, Jason A. Donenfeld wrote: > > +ifeq ($(ARCH),$(filter $(ARCH),x86_64)) > Actually... this doesn't work. Because: > ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) > The x86_64 gets turned into an x86. It's a little trickier when >

Re: [PATCH] selftest/vDSO: Fix cross build for the random tests

2024-08-30 Thread Mark Brown
On Fri, Aug 30, 2024 at 05:30:07PM +0200, Jason A. Donenfeld wrote: > On Fri, Aug 30, 2024 at 03:06:35PM +0100, Mark Brown wrote: > > The x86_64 build is still broken for me because nothing installs > > tools/arch/x86_64/vdso/vgetrandom-chacha.S (I beleive it's supposed to > > be copied from ./arc

Re: [PATCH] selftest/vDSO: Fix cross build for the random tests

2024-08-30 Thread Jason A. Donenfeld
On Fri, Aug 30, 2024 at 03:06:35PM +0100, Mark Brown wrote: > Unlike the check for the standalone x86 test the check for building the > vDSO getrandom and chacaha tests looks at the architecture for the host > rather than the architecture for the target when deciding if they should > be built. Sinc

Re: [PATCH] selftest/vDSO: Fix cross build for the random tests

2024-08-30 Thread Jason A. Donenfeld
On Fri, Aug 30, 2024 at 03:06:35PM +0100, Mark Brown wrote: > Unlike the check for the standalone x86 test the check for building the > vDSO getrandom and chacaha tests looks at the architecture for the host > rather than the architecture for the target when deciding if they should > be built. Sinc

[PATCH] selftest/vDSO: Fix cross build for the random tests

2024-08-30 Thread Mark Brown
Unlike the check for the standalone x86 test the check for building the vDSO getrandom and chacaha tests looks at the architecture for the host rather than the architecture for the target when deciding if they should be built. Since the chacha test includes some assembler code this means that cross