summaryrefslogtreecommitdiff
path: root/src/lib/fmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/fmap.c')
-rw-r--r--src/lib/fmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/fmap.c b/src/lib/fmap.c
index 54e54ba6b7..bf99037f54 100644
--- a/src/lib/fmap.c
+++ b/src/lib/fmap.c
@@ -21,6 +21,8 @@
#include <stddef.h>
#include <string.h>
+#include "fmap_config.h"
+
/*
* See http://code.google.com/p/flashmap/ for more information on FMAP.
*/
@@ -32,7 +34,7 @@ int find_fmap_directory(struct region_device *fmrd)
const struct region_device *boot;
struct fmap *fmap;
size_t fmap_size;
- size_t offset = CONFIG_FLASHMAP_OFFSET;
+ size_t offset = FMAP_OFFSET;
boot_device_init();
boot = boot_device_ro();