From 44b34e31a54519fe00658cf9e0ebb6a5b01a3702 Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Fri, 5 Nov 2004 22:03:37 +0000 Subject: CONFIG_CHIP_NAME to control config chip.h without .name git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1764 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/socket_940/Config.lb | 10 ++++++++-- src/cpu/amd/socket_940/socket_940.c | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/cpu/amd/socket_940') diff --git a/src/cpu/amd/socket_940/Config.lb b/src/cpu/amd/socket_940/Config.lb index 4b23f0b46a..cff1c6eab9 100644 --- a/src/cpu/amd/socket_940/Config.lb +++ b/src/cpu/amd/socket_940/Config.lb @@ -1,3 +1,9 @@ -#config chip.h -#object socket_940.o +uses CONFIG_CHIP_NAME + +if CONFIG_CHIP_NAME + config chip.h +end + +object socket_940.o + dir /cpu/amd/model_fxx diff --git a/src/cpu/amd/socket_940/socket_940.c b/src/cpu/amd/socket_940/socket_940.c index 1a781d61e5..d412538ed1 100644 --- a/src/cpu/amd/socket_940/socket_940.c +++ b/src/cpu/amd/socket_940/socket_940.c @@ -1,7 +1,8 @@ #include #include "chip.h" - +#if CONFIG_CHIP_NAME == 1 struct chip_operations cpu_amd_socket_940_ops = { CHIP_NAME("socket 940") }; +#endif -- cgit v1.2.3