From 1a2b318625684142d6f1081a9abc057de1804d8a Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Wed, 3 Aug 2011 09:14:59 -0500 Subject: [PATCH] Do not compile nuvoton superio for all board The nuvoton WPCM450 code is compiled for all boards regardless of whether or not they use it. Compile it only for boards needing it. Change-Id: Iaf4cf2c479eb3238863f0771be799f02a8cc3421 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/129 Tested-by: build bot (Jenkins) Reviewed-by: Kerry She Reviewed-by: Marc Jones --- src/mainboard/supermicro/h8qgi/Kconfig | 1 + src/mainboard/supermicro/h8scm_fam10/Kconfig | 1 + src/superio/nuvoton/Makefile.inc | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainboard/supermicro/h8qgi/Kconfig b/src/mainboard/supermicro/h8qgi/Kconfig index 286cb175c9..22760d2e03 100755 --- a/src/mainboard/supermicro/h8qgi/Kconfig +++ b/src/mainboard/supermicro/h8qgi/Kconfig @@ -28,6 +28,7 @@ config BOARD_SPECIFIC_OPTIONS select SOUTHBRIDGE_AMD_SR5650 select SOUTHBRIDGE_AMD_SP5100 select SUPERIO_WINBOND_W83627DHG + select SUPERIO_NUVOTON_WPCM450 select BOARD_HAS_FADT select HAVE_BUS_CONFIG select HAVE_OPTION_TABLE diff --git a/src/mainboard/supermicro/h8scm_fam10/Kconfig b/src/mainboard/supermicro/h8scm_fam10/Kconfig index 7742133dac..cbd3119544 100755 --- a/src/mainboard/supermicro/h8scm_fam10/Kconfig +++ b/src/mainboard/supermicro/h8scm_fam10/Kconfig @@ -10,6 +10,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy select SOUTHBRIDGE_AMD_SR5650 select SOUTHBRIDGE_AMD_SP5100 select SUPERIO_WINBOND_W83627HF + select SUPERIO_NUVOTON_WPCM450 select HAVE_BUS_CONFIG select HAVE_OPTION_TABLE select GENERATE_PIRQ_TABLE diff --git a/src/superio/nuvoton/Makefile.inc b/src/superio/nuvoton/Makefile.inc index 2f2ea9693d..4553dd8c45 100644 --- a/src/superio/nuvoton/Makefile.inc +++ b/src/superio/nuvoton/Makefile.inc @@ -17,4 +17,4 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -subdirs-y += wpcm450 +subdirs-$(CONFIG_SUPERIO_NUVOTON_WPCM450) += wpcm450