diff mbox series

[bpf-next,4/5] selftests/bpf: Fix installation of urandom_read

Message ID 20210112135959.649075-5-jean-philippe@linaro.org
State Superseded
Headers show
Series selftests/bpf: Some build fixes | expand

Commit Message

Jean-Philippe Brucker Jan. 12, 2021, 1:59 p.m. UTC
For out-of-tree builds, $(TEST_CUSTOM_PROGS) require the $(OUTPUT)
prefix, otherwise the kselftest lib doesn't know how to install them:

rsync: [sender] link_stat "tools/testing/selftests/bpf/urandom_read" failed: No such file or directory (2)

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>

---
 tools/testing/selftests/bpf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.30.0

Comments

Andrii Nakryiko Jan. 12, 2021, 8:57 p.m. UTC | #1
On Tue, Jan 12, 2021 at 6:01 AM Jean-Philippe Brucker
<jean-philippe@linaro.org> wrote:
>

> For out-of-tree builds, $(TEST_CUSTOM_PROGS) require the $(OUTPUT)

> prefix, otherwise the kselftest lib doesn't know how to install them:

>

> rsync: [sender] link_stat "tools/testing/selftests/bpf/urandom_read" failed: No such file or directory (2)

>

> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>

> ---


Acked-by: Andrii Nakryiko <andrii@kernel.org>



>  tools/testing/selftests/bpf/Makefile | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile

> index 046848c508d1..bffb4ad59a3d 100644

> --- a/tools/testing/selftests/bpf/Makefile

> +++ b/tools/testing/selftests/bpf/Makefile

> @@ -82,7 +82,7 @@ TEST_GEN_PROGS_EXTENDED = test_sock_addr test_skb_cgroup_id_user \

>         test_lirc_mode2_user xdping test_cpp runqslower bench bpf_testmod.ko \

>         xdpxceiver

>

> -TEST_CUSTOM_PROGS = urandom_read

> +TEST_CUSTOM_PROGS = $(OUTPUT)/urandom_read

>

>  # Emit succinct information message describing current building step

>  # $1 - generic step name (e.g., CC, LINK, etc);

> --

> 2.30.0

>
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
index 046848c508d1..bffb4ad59a3d 100644
--- a/tools/testing/selftests/bpf/Makefile
+++ b/tools/testing/selftests/bpf/Makefile
@@ -82,7 +82,7 @@  TEST_GEN_PROGS_EXTENDED = test_sock_addr test_skb_cgroup_id_user \
 	test_lirc_mode2_user xdping test_cpp runqslower bench bpf_testmod.ko \
 	xdpxceiver
 
-TEST_CUSTOM_PROGS = urandom_read
+TEST_CUSTOM_PROGS = $(OUTPUT)/urandom_read
 
 # Emit succinct information message describing current building step
 # $1 - generic step name (e.g., CC, LINK, etc);