mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
793f55b297
Both the USB4 and Nitro Enclaves KUNIT tests are now able to be compiled if KUNIT is compiled as a module. This leads to issues if KUNIT is being packaged separately from the core kernel and when KUNIT is run baremetal without the required driver compiled into the kernel. Fixes:635dcd1684
("thunderbolt: test: Use kunit_test_suite() macro") Fixes:fe5be808fa
("nitro_enclaves: test: Use kunit_test_suite() macro") Signed-off-by: Nico Pache <npache@redhat.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Andra Paraschiv <andraprs@amazon.com> Acked-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
27 lines
947 B
Plaintext
27 lines
947 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
# Amazon Nitro Enclaves (NE) support.
|
|
# Nitro is a hypervisor that has been developed by Amazon.
|
|
|
|
config NITRO_ENCLAVES
|
|
tristate "Nitro Enclaves Support"
|
|
depends on (ARM64 || X86) && HOTPLUG_CPU && PCI && SMP
|
|
help
|
|
This driver consists of support for enclave lifetime management
|
|
for Nitro Enclaves (NE).
|
|
|
|
To compile this driver as a module, choose M here.
|
|
The module will be called nitro_enclaves.
|
|
|
|
config NITRO_ENCLAVES_MISC_DEV_TEST
|
|
bool "Tests for the misc device functionality of the Nitro Enclaves" if !KUNIT_ALL_TESTS
|
|
depends on NITRO_ENCLAVES && KUNIT=y
|
|
default KUNIT_ALL_TESTS
|
|
help
|
|
Enable KUnit tests for the misc device functionality of the Nitro
|
|
Enclaves. Select this option only if you will boot the kernel for
|
|
the purpose of running unit tests (e.g. under UML or qemu). If
|
|
unsure, say N.
|