Makefile 2.63 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0+
2
#
3
# (C) Copyright 2006-2009
4
5
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.

6
7
8
9
10
11
12
13
14
15
ifdef CONFIG_SPL_BUILD

ifeq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)DM_SERIAL),yy)
obj-y += serial-uclass.o
else
obj-y += serial.o
endif

else

16
ifdef CONFIG_DM_SERIAL
17
obj-y += serial-uclass.o
18
else
19
obj-y += serial.o
20
21
22
23
24
25
26
endif

endif

ifdef CONFIG_DM_SERIAL
obj-$(CONFIG_PL01X_SERIAL) += serial_pl01x.o
else
27
obj-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
28
obj-$(CONFIG_SYS_NS16550_SERIAL) += serial_ns16550.o
29
endif
30
31
32

obj-$(CONFIG_ALTERA_UART) += altera_uart.o
obj-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o
33
obj-$(CONFIG_AR933X_UART) += serial_ar933x.o
34
35
obj-$(CONFIG_ARM_DCC) += arm_dcc.o
obj-$(CONFIG_ATMEL_USART) += atmel_usart.o
36
obj-$(CONFIG_BCM6345_SERIAL) += serial_bcm6345.o
37
obj-$(CONFIG_COREBOOT_SERIAL) += serial_coreboot.o
38
obj-$(CONFIG_CORTINA_UART) += serial_cortina.o
39
obj-$(CONFIG_DEBUG_SBI_CONSOLE) += serial_sbi.o
Simon Glass's avatar
Simon Glass committed
40
obj-$(CONFIG_EFI_APP) += serial_efi.o
41
obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o
42
obj-$(CONFIG_MCFUART) += serial_mcf.o
43
obj-$(CONFIG_SYS_NS16550) += ns16550.o
44
obj-$(CONFIG_S5P_SERIAL) += serial_s5p.o
45
46
obj-$(CONFIG_MXC_UART) += serial_mxc.o
obj-$(CONFIG_PXA_SERIAL) += serial_pxa.o
47
obj-$(CONFIG_MESON_SERIAL) += serial_meson.o
48
obj-$(CONFIG_INTEL_MID_SERIAL) += serial_intel_mid.o
49
50
51
ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_ROCKCHIP_SERIAL) += serial_rockchip.o
endif
52
53
54
55
56
obj-$(CONFIG_XILINX_UARTLITE) += serial_xuartlite.o
obj-$(CONFIG_SANDBOX_SERIAL) += sandbox.o
obj-$(CONFIG_SCIF_CONSOLE) += serial_sh.o
obj-$(CONFIG_ZYNQ_SERIAL) += serial_zynq.o
obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o
57
obj-$(CONFIG_FSL_LINFLEXUART) += serial_linflexuart.o
58
obj-$(CONFIG_ARC_SERIAL) += serial_arc.o
59
obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o
rev13@wp.pl's avatar
rev13@wp.pl committed
60
obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o
61
obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o
62
obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o
63
obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o
64
obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o
65
obj-$(CONFIG_MSM_SERIAL) += serial_msm.o
66
obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o
67
obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o
68
obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o
69
obj-$(CONFIG_OCTEON_SERIAL_BOOTCMD) += serial_octeon_bootcmd.o
70
obj-$(CONFIG_OCTEON_SERIAL_PCIE_CONSOLE) += serial_octeon_pcie_console.o
71
obj-$(CONFIG_OWL_SERIAL) += serial_owl.o
72
obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o
73
obj-$(CONFIG_MTK_SERIAL) += serial_mtk.o
74
obj-$(CONFIG_MT7620_SERIAL) += serial_mt7620.o
75
obj-$(CONFIG_SIFIVE_SERIAL) += serial_sifive.o
76
obj-$(CONFIG_XEN_SERIAL) += serial_xen.o
77
78

ifndef CONFIG_SPL_BUILD
79
obj-$(CONFIG_USB_TTY) += usbtty.o
80
endif