It's only available when oftree support is enabled.
Signed-off-by: Sascha Hauer <[email protected]>
---
arch/arm/lib/bootm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 3a00437..a8840fe 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -399,7 +399,7 @@ static int do_bootm_aimage(struct image_data *data)
if (!getenv("aimage_noverwrite_tags"))
armlinux_set_bootparams((void*)header->tags_addr);
- if (data->oftree) {
+ if (IS_ENABLED(CONFIG_OFTREE) && data->oftree) {
ret = of_fix_tree(data->oftree);
if (ret)
goto err_out;
--
1.7.10
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox