[coreboot-gerrit] New patch to review for coreboot: aaa4857 kbuild: Use wildcard for driver subdirectories

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Sun Apr 19 22:10:57 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9805

-gerrit

commit aaa48571b5bd5d604f51b66022689425eea2e914
Author: Stefan Reinauer <reinauer at chromium.org>
Date:   Sun Apr 19 12:48:25 2015 -0700

    kbuild: Use wildcard for driver subdirectories
    
    Change-Id: Id1685c0b28ec8e3ab972a671af6f2de6f321c645
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 Makefile.inc                  |  2 +-
 src/drivers/Makefile.inc      | 44 -------------------------------------------
 src/drivers/pc80/Makefile.inc |  4 ++++
 src/drivers/uart/Makefile.inc |  4 ++++
 4 files changed, 9 insertions(+), 45 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index 12cdec0..ed5a9f4 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -55,7 +55,7 @@ PHONY+= clean-abuild coreboot lint lint-stable build-dirs
 subdirs-y := src/lib src/console src/device
 subdirs-y += src/ec/acpi $(wildcard src/ec/*/*) $(wildcard src/southbridge/*/*)
 subdirs-y += $(wildcard src/soc/*/*) $(wildcard src/northbridge/*/*)
-subdirs-y += src/superio src/drivers src/cpu src/vendorcode
+subdirs-y += src/superio $(wildcard src/drivers/*) src/cpu src/vendorcode
 subdirs-y += util/cbfstool util/sconfig util/nvramtool
 subdirs-y += $(wildcard src/arch/*)
 subdirs-y += src/mainboard/$(MAINBOARDDIR)
diff --git a/src/drivers/Makefile.inc b/src/drivers/Makefile.inc
deleted file mode 100644
index 11ec920..0000000
--- a/src/drivers/Makefile.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-##
-## This file is part of the coreboot project.
-##
-## Copyright (C) 2010 coresystems GmbH
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; version 2 of the License.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-##
-
-subdirs-y += ams
-subdirs-y += ati
-subdirs-y += dec
-subdirs-y += emulation
-subdirs-y += generic
-subdirs-y += gic
-subdirs-y += i2c
-subdirs-y += intel
-subdirs-y += lenovo
-subdirs-y += maxim
-subdirs-y += net
-subdirs-y += parade
-subdirs-y += sil
-subdirs-y += trident
-subdirs-y += xgi
-subdirs-$(CONFIG_DRIVERS_UART) += uart
-subdirs-y += usb
-subdirs-y += ics
-subdirs-y += spi
-subdirs-y += ti
-subdirs-y += ipmi
-subdirs-y += elog
-subdirs-y += xpowers
-subdirs-$(CONFIG_ARCH_X86) += pc80
-subdirs-y += ricoh/rce822
diff --git a/src/drivers/pc80/Makefile.inc b/src/drivers/pc80/Makefile.inc
index be8e8ea..0788cc7 100644
--- a/src/drivers/pc80/Makefile.inc
+++ b/src/drivers/pc80/Makefile.inc
@@ -1,3 +1,5 @@
+ifeq ($(CONFIG_ARCH_X86),y)
+
 romstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
 ramstage-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
 ramstage-y += isa-dma.c
@@ -18,3 +20,5 @@ cmos.default-file = $(CONFIG_CMOS_DEFAULT_FILE):nvramtool
 cmos.default-type = 0xaa
 
 smm-$(CONFIG_DRIVERS_MC146818) += mc146818rtc.c
+
+endif
diff --git a/src/drivers/uart/Makefile.inc b/src/drivers/uart/Makefile.inc
index c4feb9a..1a809e0 100644
--- a/src/drivers/uart/Makefile.inc
+++ b/src/drivers/uart/Makefile.inc
@@ -1,3 +1,5 @@
+ifeq ($(CONFIG_DRIVERS_UART),y)
+
 romstage-y += util.c
 ramstage-y += util.c
 bootblock-y += util.c
@@ -28,3 +30,5 @@ bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c
 romstage-y += pl011.c
 ramstage-y += pl011.c
 endif
+
+endif



More information about the coreboot-gerrit mailing list