Fix usb debug dongle support
[coreboot.git] / src / southbridge / amd / sb800 / Makefile.inc
index 7a42fdd4d8ec839528c1f3f9a14fe8fd52c91b1a..38b7d50c11f2e794930fac02fc1b893b1ce9562e 100644 (file)
@@ -9,4 +9,6 @@ driver-y += pci.c
 driver-y += pcie.c
 ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.c
 ramstage-y += reset.c
-romstage-y += enable_usbdebug.c
+romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
+ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
+smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c