linux-surface/pkg/debian/kernel/ubuntu.config
Maximilian Luz 1f9fdf4427
pkg/debian: Disable CONFIG_UBSAN in kernel config
Recent Ubuntu mainline versions have enabled UBSAN. UBSAN has a runtime
cost and should only be enabled for debugging and testing.

Furthermore, UBSAN actively causes problems on the Surface Pro 4 and
Surface Book 1, preventing them from waking from suspend in some
instances. Disabling UBSAN should work around issue #585.
2021-10-09 13:16:28 +02:00

59 lines
997 B
Plaintext

##
## Disable debug info
##
# CONFIG_DEBUG_INFO is not set
##
## Do not build samples and tests
##
# CONFIG_SAMPLES is not set
# CONFIG_STM_DUMMY is not set
# CONFIG_TEST_BPF is not set
# CONFIG_DEBUG_MISC is not set
# CONFIG_UBSAN is not set
##
## Don't build atomisp
##
# CONFIG_INTEL_ATOMISP is not set
##
## Clear out trusted key list as we don't have them.
##
CONFIG_SYSTEM_TRUSTED_KEYS=""
CONFIG_SYSTEM_REVOCATION_KEYS=""
##
## Additional options from upstream (not in PPA)
##
CONFIG_ASHMEM=m
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=m
# CONFIG_ANDROID_BINDERFS is not set
CONFIG_ANDROID_BINDER_DEVICES="binder"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
##
## Indirect dependencies for Surface drivers
##
CONFIG_I2C=y
CONFIG_ACPI_I2C_OPREGION=y
##
## Disable atomisp ov5693 (in staging)
##
# CONFIG_VIDEO_ATOMISP_OV5693 is not set
##
## Disable evbug. It's annoying and potentially even a security risk when
## posting kernel logs...
##
# CONFIG_INPUT_EVBUG is not set