From 59a348b75a43d41411dfd7fc4f5d6d1f26404381 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 27 Oct 2021 18:27:58 +0200 Subject: drivers/net/r8168.c: Guard against generating power resource Not all platforms need to generate power resources, but the code does not get optimized out at build time because the devicetree gets compiled into a linked list. As this code pulls in some heavy ACPI dependencies that is even implemented with weak empty function it makes sense to optimize out this code using a Kconfig constant. This saves 1.5K in ramstage size on gigabyte/ga-945gcm-s2l. Change-Id: I82289aa7e6e82318417f3b827b86182891dfc2a6 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/58657 Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/mainboard/google/hatch/Kconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mainboard') diff --git a/src/mainboard/google/hatch/Kconfig b/src/mainboard/google/hatch/Kconfig index 6fe44e0282..de68d855ef 100644 --- a/src/mainboard/google/hatch/Kconfig +++ b/src/mainboard/google/hatch/Kconfig @@ -9,6 +9,7 @@ config BOARD_GOOGLE_BASEBOARD_PUFF select BOARD_GOOGLE_HATCH_COMMON select RT8168_GET_MAC_FROM_VPD select RT8168_SET_LED_MODE + select RT8168_GEN_ACPI_POWER_RESOURCE select ROMSTAGE_SPD_SMBUS select SPD_READ_BY_WORD select SOC_INTEL_CSE_LITE_SKU -- cgit v1.2.3