mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:50:58 +07:00
selftests: enforce local header dependency in lib.mk
Add local header dependency in lib.mk. This enforces the dependency blindly even when a test doesn't include the file, with the benefit of a simpler common logic without requiring individual tests to have special rule for it. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
d3fd949abd
commit
1056d3d2c9
@ -134,7 +134,8 @@ endif
|
||||
# Selftest makefiles can override those targets by setting
|
||||
# OVERRIDE_TARGETS = 1.
|
||||
ifeq ($(OVERRIDE_TARGETS),)
|
||||
$(OUTPUT)/%:%.c
|
||||
LOCAL_HDRS := $(selfdir)/kselftest_harness.h $(selfdir)/kselftest.h
|
||||
$(OUTPUT)/%:%.c $(LOCAL_HDRS)
|
||||
$(LINK.c) $^ $(LDLIBS) -o $@
|
||||
|
||||
$(OUTPUT)/%.o:%.S
|
||||
|
Loading…
Reference in New Issue
Block a user