[coreboot-gerrit] Patch set updated for coreboot: drivers/xpowers: Switch to src/drivers/[X]/[Y]/ scheme

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Tue Apr 19 01:08:39 CEST 2016


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

-gerrit

commit 611834053858f94c100d8b7d577023a3c1c5da4e
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Fri Mar 11 20:17:55 2016 -0800

    drivers/xpowers: Switch to src/drivers/[X]/[Y]/ scheme
    
    Reorder drivers to fit src/drivers/[X]/[Y]/ scheme to make
    them pluggable.
    
    Change-Id: Idae5ee5f1f48d904b704abe618165c0bec839979
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 src/drivers/xpowers/Kconfig             |  1 -
 src/drivers/xpowers/Makefile.inc        |  1 -
 src/drivers/xpowers/axp209/Makefile.inc | 10 +++++++---
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/drivers/xpowers/Kconfig b/src/drivers/xpowers/Kconfig
deleted file mode 100644
index 3ac2748..0000000
--- a/src/drivers/xpowers/Kconfig
+++ /dev/null
@@ -1 +0,0 @@
-source src/drivers/xpowers/axp209/Kconfig
diff --git a/src/drivers/xpowers/Makefile.inc b/src/drivers/xpowers/Makefile.inc
deleted file mode 100644
index ef6dffc..0000000
--- a/src/drivers/xpowers/Makefile.inc
+++ /dev/null
@@ -1 +0,0 @@
-subdirs-$(CONFIG_DRIVER_XPOWERS_AXP209) += axp209
diff --git a/src/drivers/xpowers/axp209/Makefile.inc b/src/drivers/xpowers/axp209/Makefile.inc
index 5ac691e..e08a8e2 100644
--- a/src/drivers/xpowers/axp209/Makefile.inc
+++ b/src/drivers/xpowers/axp209/Makefile.inc
@@ -1,3 +1,7 @@
-bootblock-$(CONFIG_DRIVER_XPOWERS_AXP209_BOOTBLOCK)	+= axp209.c
-romstage-$(CONFIG_DRIVER_XPOWERS_AXP209)		+= axp209.c
-ramstage-$(CONFIG_DRIVER_XPOWERS_AXP209)		+= axp209.c
+ifeq ($(CONFIG_DRIVER_XPOWERS_AXP209),y)
+
+bootblock-$(CONFIG_DRIVER_XPOWERS_AXP209_BOOTBLOCK) += axp209.c
+romstage-y += axp209.c
+ramstage-y += axp209.c
+
+endif



More information about the coreboot-gerrit mailing list