summaryrefslogtreecommitdiff
path: root/src/drivers/xpowers
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2016-03-11 20:17:55 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2016-05-04 22:14:44 +0200
commit5c4ddebb1631165f9bd36f6ea629b39a290afff4 (patch)
treeead4ff678d823c50318292cf574ed3b5d99f9014 /src/drivers/xpowers
parent3dc5d079fe99472b1e82cb28d75fffa735a1bd6a (diff)
downloadcoreboot-5c4ddebb1631165f9bd36f6ea629b39a290afff4.tar.xz
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@coreboot.org> Reviewed-on: https://review.coreboot.org/14048 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/drivers/xpowers')
-rw-r--r--src/drivers/xpowers/Kconfig1
-rw-r--r--src/drivers/xpowers/Makefile.inc1
-rw-r--r--src/drivers/xpowers/axp209/Makefile.inc10
3 files changed, 7 insertions, 5 deletions
diff --git a/src/drivers/xpowers/Kconfig b/src/drivers/xpowers/Kconfig
deleted file mode 100644
index 3ac2748a03..0000000000
--- 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 ef6dffca9d..0000000000
--- 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 5ac691e06d..e08a8e21a6 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