summaryrefslogtreecommitdiffstats
path: root/common/state/Makefile
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2016-07-22 15:00:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-25 10:21:16 +0200
commitf3895311ef49171b58b5ea1f06942408c8685a1e (patch)
treee4f31ea1821c238d986e5293819bd11f0de0270b /common/state/Makefile
parent2ccd60013dc2dabdb91cd2964cd9ce15eb949b1b (diff)
downloadbarebox-f3895311ef49171b58b5ea1f06942408c8685a1e.tar.gz
state: only build circular backend if MTD is enabled
The circular backend depends on MTD symbols and is only useful if MTD is present. Exclude it from the build if MTD is not enabled. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/Makefile')
-rw-r--r--common/state/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/state/Makefile b/common/state/Makefile
index 23f7286..3e0e2c6 100644
--- a/common/state/Makefile
+++ b/common/state/Makefile
@@ -5,5 +5,5 @@ obj-y += backend_format_dtb.o
obj-y += backend_format_raw.o
obj-y += backend_storage.o
obj-y += backend_bucket_direct.o
-obj-y += backend_bucket_circular.o
+obj-$(CONFIG_MTD) += backend_bucket_circular.o
obj-y += backend_bucket_cached.o