Martin Roth | 9231f0b | 2022-10-28 22:39:23 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Felix Held | d3e9771 | 2020-12-09 21:37:44 +0100 | [diff] [blame] | 2 | ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_UART),y) |
| 3 | |
Felix Held | f008e0a | 2023-04-01 01:31:24 +0200 | [diff] [blame] | 4 | all_x86-y += uart.c |
Felix Held | 97e6125 | 2022-10-18 19:03:20 +0200 | [diff] [blame] | 5 | smm-$(CONFIG_DEBUG_SMI) += uart.c |
| 6 | |
Felix Held | 6f9ed7a | 2021-01-13 02:09:58 +0100 | [diff] [blame] | 7 | all-$(CONFIG_AMD_SOC_CONSOLE_UART) += uart_console.c |
Felix Held | d3e9771 | 2020-12-09 21:37:44 +0100 | [diff] [blame] | 8 | |
| 9 | ifeq ($(CONFIG_DEBUG_SMI),y) |
| 10 | smm-$(CONFIG_AMD_SOC_CONSOLE_UART) += uart_console.c |
| 11 | endif |
| 12 | |
Felix Held | d3e9771 | 2020-12-09 21:37:44 +0100 | [diff] [blame] | 13 | endif # CONFIG_SOC_AMD_COMMON_BLOCK_UART |