* [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE
@ 2025-02-18 10:48 Niklas Cassel via buildroot
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
` (5 more replies)
0 siblings, 6 replies; 10+ messages in thread
From: Niklas Cassel via buildroot @ 2025-02-18 10:48 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
From: Niklas Cassel <cassel@kernel.org>
support/scripts/check-bin-arch has an option -i to exclude a path
(or many paths by using -i multiple times).
This was implemented in commit 01d90f0d093f ("spport/check-bin-arch:
accept arbitrary per-package ignore paths").
Looking at this feature (which hasn't changed since being added),
we can see that check-bin-arch automatically adds a trailing slash
to all entries specified using -i.
Thus, specifying a path to a file, e.g.
"/usr/libexec/perf-core/tests/pe-file.exe" will cause check-bin-arch
to add "/usr/libexec/perf-core/tests/pe-file.exe/" to the IGNORES array.
When running the main loop, the file
"/usr/libexec/perf-core/tests/pe-file.exe" will thus not be ignored,
since it will not trigger a match the pattern that was added to the
IGNORES array ("/usr/libexec/perf-core/tests/pe-file.exe/").
This means that the -i option in check-bin-arch only supports directories
and not files.
Fix the LINUX_TOOLS_BIN_ARCH_EXCLUDE in
package/linux-tools/linux-tool-perf.mk.in to specify a directory, as the
existing LINUX_TOOLS_BIN_ARCH_EXCLUDE can never have actually worked.
Fixes: a7ad7816262d ("package/linux-tools: Exclude checking PE binaries from perf test")
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
package/linux-tools/linux-tool-perf.mk.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in
index df3030439e..d67318571a 100644
--- a/package/linux-tools/linux-tool-perf.mk.in
+++ b/package/linux-tools/linux-tool-perf.mk.in
@@ -180,8 +180,7 @@ define PERF_INSTALL_REMOVE_SCRIPTS
endef
LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
- /usr/libexec/perf-core/tests/pe-file.exe \
- /usr/libexec/perf-core/tests/pe-file.exe.debug
+ /usr/libexec/perf-core/tests/
endif
define PERF_INSTALL_TARGET_CMDS
--
2.48.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
@ 2025-02-18 10:48 ` Niklas Cassel via buildroot
2025-03-04 22:36 ` Florian Fainelli
` (2 more replies)
2025-02-24 8:14 ` [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
` (4 subsequent siblings)
5 siblings, 3 replies; 10+ messages in thread
From: Niklas Cassel via buildroot @ 2025-02-18 10:48 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
From: Niklas Cassel <cassel@kernel.org>
Enabling BR2_PACKAGE_LINUX_TOOLS_SELFTESTS (on rock5b_defconfig,
which uses kernel 6.12 at the time of writing), results in:
make[1]: Leaving directory '/br/output/build/linux-endpoint-test/tools/testing/selftests'
ERROR: architecture for "/usr/lib/kselftests/tc-testing/action-ebpf" is "Linux BPF", should be "AArch64"
make: *** [package/pkg-generic.mk:402: /br/output/build/linux-tools/.stamp_installed] Error 1
To solve this, add /usr/lib/kselftests/tc-testing/ to
LINUX_TOOLS_BIN_ARCH_EXCLUDE.
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
package/linux-tools/linux-tool-selftests.mk.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/linux-tools/linux-tool-selftests.mk.in b/package/linux-tools/linux-tool-selftests.mk.in
index 0bcc47af0a..db7e4fa1a3 100644
--- a/package/linux-tools/linux-tool-selftests.mk.in
+++ b/package/linux-tools/linux-tool-selftests.mk.in
@@ -26,6 +26,9 @@ SELFTESTS_MAKE_FLAGS = \
ARCH=$(SELFTESTS_ARCH) \
KHDR_DIR=$(LINUX_DIR)/usr/include
+LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
+ /usr/lib/kselftests/tc-testing/
+
# O must be redefined here to overwrite the one used by Buildroot for
# out of tree build. We build the selftests in $(LINUX_DIR)/tools/selftests and
# not just $(LINUX_DIR) so that it isn't built in the root directory of the kernel
--
2.48.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
@ 2025-02-24 8:14 ` Niklas Cassel via buildroot
2025-03-04 22:36 ` Florian Fainelli
` (3 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Niklas Cassel via buildroot @ 2025-02-24 8:14 UTC (permalink / raw)
To: Yann E . MORIN
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
Hello Yann,
Any chance to get a review from you on this series?
Kind regards,
Niklas
On Tue, Feb 18, 2025 at 11:48:06AM +0100, Niklas Cassel wrote:
> From: Niklas Cassel <cassel@kernel.org>
>
> support/scripts/check-bin-arch has an option -i to exclude a path
> (or many paths by using -i multiple times).
>
> This was implemented in commit 01d90f0d093f ("spport/check-bin-arch:
> accept arbitrary per-package ignore paths").
>
> Looking at this feature (which hasn't changed since being added),
> we can see that check-bin-arch automatically adds a trailing slash
> to all entries specified using -i.
>
> Thus, specifying a path to a file, e.g.
> "/usr/libexec/perf-core/tests/pe-file.exe" will cause check-bin-arch
> to add "/usr/libexec/perf-core/tests/pe-file.exe/" to the IGNORES array.
>
> When running the main loop, the file
> "/usr/libexec/perf-core/tests/pe-file.exe" will thus not be ignored,
> since it will not trigger a match the pattern that was added to the
> IGNORES array ("/usr/libexec/perf-core/tests/pe-file.exe/").
>
> This means that the -i option in check-bin-arch only supports directories
> and not files.
>
> Fix the LINUX_TOOLS_BIN_ARCH_EXCLUDE in
> package/linux-tools/linux-tool-perf.mk.in to specify a directory, as the
> existing LINUX_TOOLS_BIN_ARCH_EXCLUDE can never have actually worked.
>
> Fixes: a7ad7816262d ("package/linux-tools: Exclude checking PE binaries from perf test")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
> ---
> package/linux-tools/linux-tool-perf.mk.in | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in
> index df3030439e..d67318571a 100644
> --- a/package/linux-tools/linux-tool-perf.mk.in
> +++ b/package/linux-tools/linux-tool-perf.mk.in
> @@ -180,8 +180,7 @@ define PERF_INSTALL_REMOVE_SCRIPTS
> endef
>
> LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
> - /usr/libexec/perf-core/tests/pe-file.exe \
> - /usr/libexec/perf-core/tests/pe-file.exe.debug
> + /usr/libexec/perf-core/tests/
> endif
>
> define PERF_INSTALL_TARGET_CMDS
> --
> 2.48.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
@ 2025-03-04 22:36 ` Florian Fainelli
2025-03-20 9:01 ` Niklas Cassel via buildroot
2025-04-16 20:56 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 10+ messages in thread
From: Florian Fainelli @ 2025-03-04 22:36 UTC (permalink / raw)
To: Niklas Cassel, Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Yann E . MORIN,
Yann E . MORIN, Niklas Cassel
On 2/18/25 02:48, Niklas Cassel wrote:
> From: Niklas Cassel <cassel@kernel.org>
>
> Enabling BR2_PACKAGE_LINUX_TOOLS_SELFTESTS (on rock5b_defconfig,
> which uses kernel 6.12 at the time of writing), results in:
>
> make[1]: Leaving directory '/br/output/build/linux-endpoint-test/tools/testing/selftests'
> ERROR: architecture for "/usr/lib/kselftests/tc-testing/action-ebpf" is "Linux BPF", should be "AArch64"
> make: *** [package/pkg-generic.mk:402: /br/output/build/linux-tools/.stamp_installed] Error 1
>
> To solve this, add /usr/lib/kselftests/tc-testing/ to
> LINUX_TOOLS_BIN_ARCH_EXCLUDE.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-02-24 8:14 ` [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
@ 2025-03-04 22:36 ` Florian Fainelli
2025-03-12 8:40 ` Niklas Cassel via buildroot
` (2 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Florian Fainelli @ 2025-03-04 22:36 UTC (permalink / raw)
To: Niklas Cassel, Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Yann E . MORIN,
Yann E . MORIN, Niklas Cassel
On 2/18/25 02:48, Niklas Cassel wrote:
> From: Niklas Cassel <cassel@kernel.org>
>
> support/scripts/check-bin-arch has an option -i to exclude a path
> (or many paths by using -i multiple times).
>
> This was implemented in commit 01d90f0d093f ("spport/check-bin-arch:
> accept arbitrary per-package ignore paths").
>
> Looking at this feature (which hasn't changed since being added),
> we can see that check-bin-arch automatically adds a trailing slash
> to all entries specified using -i.
>
> Thus, specifying a path to a file, e.g.
> "/usr/libexec/perf-core/tests/pe-file.exe" will cause check-bin-arch
> to add "/usr/libexec/perf-core/tests/pe-file.exe/" to the IGNORES array.
>
> When running the main loop, the file
> "/usr/libexec/perf-core/tests/pe-file.exe" will thus not be ignored,
> since it will not trigger a match the pattern that was added to the
> IGNORES array ("/usr/libexec/perf-core/tests/pe-file.exe/").
>
> This means that the -i option in check-bin-arch only supports directories
> and not files.
>
> Fix the LINUX_TOOLS_BIN_ARCH_EXCLUDE in
> package/linux-tools/linux-tool-perf.mk.in to specify a directory, as the
> existing LINUX_TOOLS_BIN_ARCH_EXCLUDE can never have actually worked.
>
> Fixes: a7ad7816262d ("package/linux-tools: Exclude checking PE binaries from perf test")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
` (2 preceding siblings ...)
2025-03-04 22:36 ` Florian Fainelli
@ 2025-03-12 8:40 ` Niklas Cassel via buildroot
2025-03-20 21:47 ` Julien Olivain
2025-04-16 20:55 ` Arnout Vandecappelle via buildroot
5 siblings, 0 replies; 10+ messages in thread
From: Niklas Cassel via buildroot @ 2025-03-12 8:40 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
Hello all,
Considering that this series is Acked-by Florian,
any chance to get it picked up (on next branch)?
Kind regards,
Niklas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-03-04 22:36 ` Florian Fainelli
@ 2025-03-20 9:01 ` Niklas Cassel via buildroot
2025-04-16 20:56 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 10+ messages in thread
From: Niklas Cassel via buildroot @ 2025-03-20 9:01 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel, Romain Naour,
Julien Olivain
On Tue, Feb 18, 2025 at 11:48:07AM +0100, Niklas Cassel wrote:
> From: Niklas Cassel <cassel@kernel.org>
>
> Enabling BR2_PACKAGE_LINUX_TOOLS_SELFTESTS (on rock5b_defconfig,
> which uses kernel 6.12 at the time of writing), results in:
>
> make[1]: Leaving directory '/br/output/build/linux-endpoint-test/tools/testing/selftests'
> ERROR: architecture for "/usr/lib/kselftests/tc-testing/action-ebpf" is "Linux BPF", should be "AArch64"
> make: *** [package/pkg-generic.mk:402: /br/output/build/linux-tools/.stamp_installed] Error 1
>
> To solve this, add /usr/lib/kselftests/tc-testing/ to
> LINUX_TOOLS_BIN_ARCH_EXCLUDE.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
> ---
> package/linux-tools/linux-tool-selftests.mk.in | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/package/linux-tools/linux-tool-selftests.mk.in b/package/linux-tools/linux-tool-selftests.mk.in
> index 0bcc47af0a..db7e4fa1a3 100644
> --- a/package/linux-tools/linux-tool-selftests.mk.in
> +++ b/package/linux-tools/linux-tool-selftests.mk.in
> @@ -26,6 +26,9 @@ SELFTESTS_MAKE_FLAGS = \
> ARCH=$(SELFTESTS_ARCH) \
> KHDR_DIR=$(LINUX_DIR)/usr/include
>
> +LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
> + /usr/lib/kselftests/tc-testing/
> +
> # O must be redefined here to overwrite the one used by Buildroot for
> # out of tree build. We build the selftests in $(LINUX_DIR)/tools/selftests and
> # not just $(LINUX_DIR) so that it isn't built in the root directory of the kernel
> --
> 2.48.1
Hello Thomas, Romain, Julien,
Any chance to get this picked up?
Kind regards,
Niklas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
` (3 preceding siblings ...)
2025-03-12 8:40 ` Niklas Cassel via buildroot
@ 2025-03-20 21:47 ` Julien Olivain
2025-04-16 20:55 ` Arnout Vandecappelle via buildroot
5 siblings, 0 replies; 10+ messages in thread
From: Julien Olivain @ 2025-03-20 21:47 UTC (permalink / raw)
To: Niklas Cassel
Cc: Thomas Petazzoni, buildroot, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
On 18/02/2025 11:48, Niklas Cassel via buildroot wrote:
> From: Niklas Cassel <cassel@kernel.org>
[...]
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
` (4 preceding siblings ...)
2025-03-20 21:47 ` Julien Olivain
@ 2025-04-16 20:55 ` Arnout Vandecappelle via buildroot
5 siblings, 0 replies; 10+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-04-16 20:55 UTC (permalink / raw)
To: Niklas Cassel, Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
On 18/02/2025 11:48, Niklas Cassel via buildroot wrote:
> From: Niklas Cassel <cassel@kernel.org>
>
> support/scripts/check-bin-arch has an option -i to exclude a path
> (or many paths by using -i multiple times).
>
> This was implemented in commit 01d90f0d093f ("spport/check-bin-arch:
> accept arbitrary per-package ignore paths").
>
> Looking at this feature (which hasn't changed since being added),
> we can see that check-bin-arch automatically adds a trailing slash
> to all entries specified using -i.
>
> Thus, specifying a path to a file, e.g.
> "/usr/libexec/perf-core/tests/pe-file.exe" will cause check-bin-arch
> to add "/usr/libexec/perf-core/tests/pe-file.exe/" to the IGNORES array.
>
> When running the main loop, the file
> "/usr/libexec/perf-core/tests/pe-file.exe" will thus not be ignored,
> since it will not trigger a match the pattern that was added to the
> IGNORES array ("/usr/libexec/perf-core/tests/pe-file.exe/").
>
> This means that the -i option in check-bin-arch only supports directories
> and not files.
>
> Fix the LINUX_TOOLS_BIN_ARCH_EXCLUDE in
> package/linux-tools/linux-tool-perf.mk.in to specify a directory, as the
> existing LINUX_TOOLS_BIN_ARCH_EXCLUDE can never have actually worked.
>
> Fixes: a7ad7816262d ("package/linux-tools: Exclude checking PE binaries from perf test")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Applied to 2025.02.x, 2024.11.x and 2024.02.x, thanks.
Regards,
Arnout
> ---
> package/linux-tools/linux-tool-perf.mk.in | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in
> index df3030439e..d67318571a 100644
> --- a/package/linux-tools/linux-tool-perf.mk.in
> +++ b/package/linux-tools/linux-tool-perf.mk.in
> @@ -180,8 +180,7 @@ define PERF_INSTALL_REMOVE_SCRIPTS
> endef
>
> LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
> - /usr/libexec/perf-core/tests/pe-file.exe \
> - /usr/libexec/perf-core/tests/pe-file.exe.debug
> + /usr/libexec/perf-core/tests/
> endif
>
> define PERF_INSTALL_TARGET_CMDS
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-03-04 22:36 ` Florian Fainelli
2025-03-20 9:01 ` Niklas Cassel via buildroot
@ 2025-04-16 20:56 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 10+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-04-16 20:56 UTC (permalink / raw)
To: Niklas Cassel, Thomas Petazzoni
Cc: buildroot@buildroot.org, Damien Le Moal, Florian Fainelli,
Yann E . MORIN, Yann E . MORIN, Niklas Cassel
On 18/02/2025 11:48, Niklas Cassel via buildroot wrote:
> From: Niklas Cassel <cassel@kernel.org>
>
> Enabling BR2_PACKAGE_LINUX_TOOLS_SELFTESTS (on rock5b_defconfig,
> which uses kernel 6.12 at the time of writing), results in:
>
> make[1]: Leaving directory '/br/output/build/linux-endpoint-test/tools/testing/selftests'
> ERROR: architecture for "/usr/lib/kselftests/tc-testing/action-ebpf" is "Linux BPF", should be "AArch64"
> make: *** [package/pkg-generic.mk:402: /br/output/build/linux-tools/.stamp_installed] Error 1
>
> To solve this, add /usr/lib/kselftests/tc-testing/ to
> LINUX_TOOLS_BIN_ARCH_EXCLUDE.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Applied to 2025.02.x, 2024.11.x and 2024.02.x, thanks.
Regards,
Arnout
> ---
> package/linux-tools/linux-tool-selftests.mk.in | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/package/linux-tools/linux-tool-selftests.mk.in b/package/linux-tools/linux-tool-selftests.mk.in
> index 0bcc47af0a..db7e4fa1a3 100644
> --- a/package/linux-tools/linux-tool-selftests.mk.in
> +++ b/package/linux-tools/linux-tool-selftests.mk.in
> @@ -26,6 +26,9 @@ SELFTESTS_MAKE_FLAGS = \
> ARCH=$(SELFTESTS_ARCH) \
> KHDR_DIR=$(LINUX_DIR)/usr/include
>
> +LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
> + /usr/lib/kselftests/tc-testing/
> +
> # O must be redefined here to overwrite the one used by Buildroot for
> # out of tree build. We build the selftests in $(LINUX_DIR)/tools/selftests and
> # not just $(LINUX_DIR) so that it isn't built in the root directory of the kernel
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-04-16 20:56 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18 10:48 [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-02-18 10:48 ` [Buildroot] [PATCH 2/2] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-03-04 22:36 ` Florian Fainelli
2025-03-20 9:01 ` Niklas Cassel via buildroot
2025-04-16 20:56 ` Arnout Vandecappelle via buildroot
2025-02-24 8:14 ` [Buildroot] [PATCH 1/2] package/linux-tools: perf: Fix _BIN_ARCH_EXCLUDE Niklas Cassel via buildroot
2025-03-04 22:36 ` Florian Fainelli
2025-03-12 8:40 ` Niklas Cassel via buildroot
2025-03-20 21:47 ` Julien Olivain
2025-04-16 20:55 ` Arnout Vandecappelle via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.