# Copyright (c) 2026 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

config SOC_FAMILY_MAX32_SECURE_SOC_SIGNING
	bool "Secure SoC image signing"
	depends on SOC_FAMILY_MAX32_SECURE_BOOT_SUPPORTED
	select HAVE_CUSTOM_LINKER_SCRIPT
	select BUILD_OUTPUT_HEX_GAP_FILL if BUILD_OUTPUT_HEX
	help
	  Select this option to enable image signing for secure SoCs. It is
	  required to set the linker configurations and enable image signing.

if SOC_FAMILY_MAX32_SECURE_SOC_SIGNING

config SOC_FAMILY_MAX32_SECURE_SOC_KEY_PATH
	string "Secure SoC's key path"
	help
	  Path to the private key used to sign the image. This is used by the
	  signing tool to sign the image.

endif
