mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
Letting SMI handler touch EHCI controller is an excellent source of USB problems. Remove usbdebug entirely from SMM. It may be possible to make usbdebug console work from SMM after hard work and coordination with payloads and even OS drivers. But we are not there. Change-Id: Id50586758ee06e8d76e682dc6f64f756ab5b79f5 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3858 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
163 lines
4.7 KiB
Makefile
163 lines
4.7 KiB
Makefile
#
|
|
# This file is part of the coreboot project.
|
|
#
|
|
# Copyright (C) 2009 coresystems GmbH
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
#
|
|
|
|
bootblock-y += cbfs.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
|
|
bootblock-y += memset.c
|
|
endif
|
|
bootblock-y += memchr.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
|
|
bootblock-y += memcpy.c
|
|
endif
|
|
bootblock-y += memcmp.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
|
|
bootblock-y += memmove.c
|
|
endif
|
|
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
|
|
romstage-y += memset.c
|
|
rmodules-y += memset.c
|
|
endif
|
|
romstage-y += memchr.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
|
|
romstage-y += memcpy.c
|
|
rmodules-y += memcpy.c
|
|
endif
|
|
romstage-y += memcmp.c
|
|
rmodules-y += memcmp.c
|
|
romstage-y += cbfs.c
|
|
romstage-$(CONFIG_COMPRESS_RAMSTAGE) += lzma.c
|
|
#romstage-y += lzmadecode.c
|
|
romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c
|
|
romstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
|
|
romstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
|
|
romstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
|
|
romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
|
|
romstage-$(CONFIG_USBDEBUG) += usbdebug.c
|
|
romstage-$(CONFIG_SPKMODEM) += spkmodem.c
|
|
|
|
romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
|
|
|
ifneq ($(CONFIG_DYNAMIC_CBMEM),y)
|
|
romstage-$(CONFIG_EARLY_CBMEM_INIT) += cbmem.c
|
|
endif
|
|
|
|
romstage-y += compute_ip_checksum.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
|
|
romstage-y += memmove.c
|
|
endif
|
|
romstage-$(CONFIG_ARCH_X86) += gcc.c
|
|
|
|
ramstage-y += hardwaremain.c
|
|
ramstage-y += selfboot.c
|
|
ramstage-y += coreboot_table.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
|
|
ramstage-y += memset.c
|
|
endif
|
|
ramstage-y += memchr.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
|
|
ramstage-y += memcpy.c
|
|
endif
|
|
ramstage-y += memcmp.c
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
|
|
ramstage-y += memmove.c
|
|
endif
|
|
ramstage-y += malloc.c
|
|
smm-$(CONFIG_SMM_TSEG) += malloc.c
|
|
ramstage-y += delay.c
|
|
ramstage-y += fallback_boot.c
|
|
ramstage-y += compute_ip_checksum.c
|
|
ramstage-y += version.c
|
|
ramstage-y += cbfs.c
|
|
ramstage-y += lzma.c
|
|
#ramstage-y += lzmadecode.c
|
|
ramstage-y += stack.c
|
|
ramstage-$(CONFIG_ARCH_X86) += gcc.c
|
|
ramstage-y += clog2.c
|
|
ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
|
|
ramstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
|
|
ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
|
|
ramstage-$(CONFIG_USBDEBUG) += usbdebug.c
|
|
ramstage-$(CONFIG_SPKMODEM) += spkmodem.c
|
|
ramstage-$(CONFIG_BOOTSPLASH) += jpeg.c
|
|
ramstage-$(CONFIG_TRACE) += trace.c
|
|
ramstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
|
ramstage-$(CONFIG_COVERAGE) += libgcov.c
|
|
ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += edid.c
|
|
ramstage-y += memrange.c
|
|
ramstage-$(CONFIG_COOP_MULTITASKING) += thread.c
|
|
ramstage-$(CONFIG_TIMER_QUEUE) += timer_queue.c
|
|
|
|
# The CBMEM implementations are chosen based on CONFIG_DYNAMIC_CBMEM.
|
|
ifeq ($(CONFIG_DYNAMIC_CBMEM),y)
|
|
ramstage-y += dynamic_cbmem.c
|
|
romstage-y += dynamic_cbmem.c
|
|
else
|
|
ramstage-y += cbmem.c
|
|
romstage-$(CONFIG_HAVE_ACPI_RESUME) += cbmem.c
|
|
endif # CONFIG_DYNAMIC_CBMEM
|
|
ramstage-y += cbmem_info.c
|
|
|
|
ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
|
|
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
|
|
smm-y += memset.c
|
|
endif
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
|
|
smm-y += memcpy.c
|
|
endif
|
|
ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
|
|
smm-y += memmove.c
|
|
endif
|
|
smm-y += cbfs.c memcmp.c
|
|
smm-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
|
|
smm-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
|
|
smm-y += gcc.c
|
|
|
|
$(obj)/lib/version.ramstage.o : $(obj)/build.h
|
|
|
|
OPTION_TABLE_H:=
|
|
ifeq ($(CONFIG_HAVE_OPTION_TABLE),y)
|
|
OPTION_TABLE_H:=$(obj)/option_table.h
|
|
endif
|
|
|
|
$(obj)/lib/uart8250mem.smm.o : $(OPTION_TABLE_H)
|
|
$(obj)/lib/uart8250.smm.o : $(OPTION_TABLE_H)
|
|
|
|
ifeq ($(CONFIG_RELOCATABLE_MODULES),y)
|
|
ramstage-y += rmodule.c
|
|
romstage-$(CONFIG_RELOCATABLE_RAMSTAGE) += rmodule.c
|
|
|
|
RMODULE_LDSCRIPT := $(src)/lib/rmodule.ld
|
|
RMODULE_LDFLAGS := -nostartfiles -shared -z defs -nostdlib -Bsymbolic -T $(RMODULE_LDSCRIPT)
|
|
|
|
# rmodule_link_rules is a function that should be called with:
|
|
# (1) the object name to link
|
|
# (2) the dependencies
|
|
# (3) heap size of the relocatable module
|
|
# It will create the necessary Make rules.
|
|
define rmodule_link
|
|
$(strip $(1)): $(strip $(2)) $$(RMODULE_LDSCRIPT) $$(obj)/ldoptions
|
|
$$(LD) $$(RMODULE_LDFLAGS) --defsym=__heap_size=$(strip $(3)) -o $$@ $(strip $(2))
|
|
$$(NM) -n $$@ > $$(basename $$@).map
|
|
endef
|
|
|
|
endif
|
|
|