Skip to content

Commit

Permalink
selftests: vdso: Add support for vdso_test_random for powerpc
Browse files Browse the repository at this point in the history
Add the necessary symbolic link and tell Makefile to build
vdso_test_random for powerpc.

In makefile, don't use $(uname_M) which is wrong when cross-building
for powerpc on an x86_64.

Signed-off-by: Christophe Leroy <[email protected]>
  • Loading branch information
chleroy committed Aug 21, 2024
1 parent 57b740a commit 5c0a75f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/arch/powerpc/vdso
6 changes: 6 additions & 0 deletions tools/testing/selftests/vDSO/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ ifneq ($(SODIUM),)
TEST_GEN_PROGS += vdso_test_chacha
endif
endif
ifeq ($(ARCH),powerpc)
TEST_GEN_PROGS += vdso_test_getrandom
ifneq ($(SODIUM),)
TEST_GEN_PROGS += vdso_test_chacha
endif
endif

CFLAGS := -std=gnu99

Expand Down

0 comments on commit 5c0a75f

Please sign in to comment.