gm45: Link cstates.c rather than including it.

The comment about necessity of include isn't true anymore as get_cst_entries
is not weak anymore so if it's not found, the linking would fail.

Change-Id: I4bf88208d63ac3e625f464c3907e2e1ea575dd9f
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/7375
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Vladimir Serbinenko 2014-11-09 13:44:36 +01:00
parent 83f81cad7a
commit 61bb37e205
4 changed files with 3 additions and 6 deletions

View File

@ -18,3 +18,4 @@
##
ramstage-y += dock.c
ramstage-y += cstates.c

View File

@ -32,9 +32,6 @@
#include <ec/lenovo/h8/h8.h>
#include "drivers/lenovo/lenovo.h"
#include "cstates.c" /* Include it, as the linker won't find
the overloaded weak function in there. */
static void fill_ssdt(void)
{
drivers_lenovo_serial_ports_ssdt_generate("\\_SB.PCI0.LPCB", 0);

View File

@ -18,3 +18,5 @@
##
ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += ti_pci7xx1.c
ramstage-y += cstates.c

View File

@ -26,9 +26,6 @@
#include <pc80/keyboard.h>
#include <ec/acpi/ec.h>
#include "cstates.c" /* Include it, as the linker won't find
the overloaded weak function in there. */
static void ec_setup(void)
{
/* Thermal limits? Values are from ectool's ram dump. */