Skip to content

Commit

Permalink
kbuild: Merge per-arch config for kselftest-merge target
Browse files Browse the repository at this point in the history
Some kselftests has a per-arch config,
e.g. tools/testing/selftests/bpf/config.s390x.

Make sure these configs are picked up by the kselftest-merge target.

Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
bjorn-rivos authored and shuahkh committed Oct 5, 2023
1 parent 6d3d638 commit 37013b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ kselftest-%: headers FORCE
PHONY += kselftest-merge
kselftest-merge:
$(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
$(Q)find $(srctree)/tools/testing/selftests -name config | \
$(Q)find $(srctree)/tools/testing/selftests -name config -o -name config.$(UTS_MACHINE) | \
xargs $(srctree)/scripts/kconfig/merge_config.sh -y -m $(objtree)/.config
$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig

Expand Down

0 comments on commit 37013b5

Please sign in to comment.