From ddcefbcfd81b104f881a0194be69f013722ba852 Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Tue, 23 May 2023 19:31:42 +0200 Subject: [PATCH] package/libmnl: fix build failure The rtnl-link-can application requires kernel headers of at least version 4.11. Since the `make check` command compiles all examples, their compilation is enabled only if the condition regarding the kernel headers is satisfied. Fixes: - http://autobuild.buildroot.net/results/36c1619c8b02efeaf9caebae8bb5c3eb8a26238b/ - http://autobuild.buildroot.net/results/15f6dc103eec7bdeb5020acbc0ae99dc97c00e4e/ Signed-off-by: Dario Binacchi Signed-off-by: Yann E. MORIN --- package/libmnl/Config.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libmnl/Config.in b/package/libmnl/Config.in index b4a4195751..434778bf55 100644 --- a/package/libmnl/Config.in +++ b/package/libmnl/Config.in @@ -10,7 +10,11 @@ if BR2_PACKAGE_LIBMNL config BR2_PACKAGE_LIBMNL_EXAMPLES bool "install examples" + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 help Install binary examples. +comment "examples needs a toolchain w/ headers >= 4.11" + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 + endif