diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-08-24 12:46:52 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-09-16 14:57:46 +0300 |
commit | 2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2 (patch) | |
tree | 7120f7cb51581c70ed207203cccb28145740a666 /drivers/thunderbolt/Makefile | |
parent | 884e4d576fdf6780a896bc9f7a2fe73fce5aa66a (diff) | |
download | linux-2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2.tar.xz |
thunderbolt: Allow KUnit tests to be built also when CONFIG_USB4=m
This adds a bit more build coverage for the tests even though these are
not expected to be enabled by normal users and distros. In order to make
this working we need to open-code kunit_test_suite() and call the
relevant functions directly in the driver init/exit hook.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/Makefile')
-rw-r--r-- | drivers/thunderbolt/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thunderbolt/Makefile b/drivers/thunderbolt/Makefile index 61d5dff445b6..571537371072 100644 --- a/drivers/thunderbolt/Makefile +++ b/drivers/thunderbolt/Makefile @@ -6,5 +6,4 @@ thunderbolt-objs += nvm.o retimer.o quirks.o thunderbolt-${CONFIG_ACPI} += acpi.o thunderbolt-$(CONFIG_DEBUG_FS) += debugfs.o - -obj-${CONFIG_USB4_KUNIT_TEST} += test.o +thunderbolt-${CONFIG_USB4_KUNIT_TEST} += test.o |