From f3895311ef49171b58b5ea1f06942408c8685a1e Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 22 Jul 2016 15:00:19 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- common/state/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/state/Makefile') diff --git a/common/state/Makefile b/common/state/Makefile index 23f72862b9..3e0e2c6e55 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 -- cgit v1.2.3