Currently this needlessly initializes the hardware in the both the romstage and the bootblock, but it works. Build option is renamed to USBDEBUG_IN_PRE_RAM to reflect the use better, related support files can be built to pre-ram stages regardless of usbdebug being enabled or not. Tested on Google/peppy (adapted to C_ENVIRONMENT_BOOTBLOCK). Change-Id: Ib77f2fc7f3d8fa524405601bae15cce9f76ffc6f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30480 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
29 lines
600 B
Makefile
29 lines
600 B
Makefile
ifeq ($(CONFIG_SOUTHBRIDGE_NVIDIA_CK804),y)
|
|
|
|
ramstage-y += ck804.c
|
|
ramstage-y += usb.c
|
|
ramstage-y += lpc.c
|
|
ramstage-y += smbus.c
|
|
ramstage-y += ide.c
|
|
ramstage-y += sata.c
|
|
ramstage-y += usb2.c
|
|
ramstage-y += ac97.c
|
|
ramstage-y += nic.c
|
|
ramstage-y += pci.c
|
|
ramstage-y += pcie.c
|
|
ramstage-y += ht.c
|
|
|
|
ramstage-y += reset.c
|
|
|
|
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fadt.c
|
|
|
|
bootblock-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
|
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
|
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
|
romstage-y += early_smbus.c
|
|
|
|
bootblock-y += romstrap.ld
|
|
bootblock-y += romstrap.S
|
|
|
|
endif
|