Skip to content

Commit

Permalink
package/linux-tools: fix selftests with kernel >= 6.5
Browse files Browse the repository at this point in the history
Fix the following selftests build failure raised since kernel >= 6.5 and
torvalds/linux@9fc96c7:

make[1]: Entering directory '/home/autobuild/autobuild/instance-4/output-1/build/linux-6.6.3/tools/testing/selftests'

error: missing kernel header files.
Please run this and try again:

    cd ../../..
    make headers

make[1]: *** [Makefile:186: kernel_header_files] Error 1

Fixes:
 - http://autobuild.buildroot.org/results/7674abb454b46ca768e44b6838a0d8724c772dd6

Signed-off-by: Fabrice Fontaine <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
  • Loading branch information
ffontaine authored and jacmet committed Dec 3, 2023
1 parent 499b4d6 commit b957a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/linux-tools/linux-tool-selftests.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ SELFTESTS_DEPENDENCIES = \

SELFTESTS_MAKE_FLAGS = \
$(LINUX_MAKE_FLAGS) \
ARCH=$(SELFTESTS_ARCH)
ARCH=$(SELFTESTS_ARCH) \
KHDR_DIR=$(LINUX_DIR)/usr/include

# 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
Expand Down

0 comments on commit b957a02

Please sign in to comment.