From 0660d1fa40e88f01ad7b9e5d0369e0dfcb2fb08f Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 24 Jan 2018 17:16:30 -0700 Subject: lib: include timer.c for all stages for GENERIC_UDELAY In order to fully utilize GENERIC_UDELAY in smm and postcar the udelay() implementation needs to be included. Do that. BUG=b:72378235,b:72170796 Change-Id: Ia20c1ed41ee439bb079e00fb7bd9c1855e31e349 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/23421 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Justin TerAvest Reviewed-by: Furquan Shaikh --- src/lib/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index d77884c3d9..3ddf01705f 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -177,6 +177,7 @@ ramstage-y += boot_device.c smm-y += boot_device.c smm-y += fmap.c smm-y += cbfs.c memcmp.c +smm-$(CONFIG_GENERIC_UDELAY) += timer.c bootblock-y += version.c romstage-y += version.c @@ -238,6 +239,7 @@ postcar-y += prog_loaders.c postcar-y += prog_ops.c postcar-y += rmodule.c postcar-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c +postcar-$(CONFIG_GENERIC_UDELAY) += timer.c # Use program.ld for all the platforms which use C fo the bootblock. bootblock-$(CONFIG_C_ENVIRONMENT_BOOTBLOCK) += program.ld -- cgit v1.2.3