summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-09-14 11:50:21 -0400
committerTom Rini <[email protected]>2022-09-14 11:50:21 -0400
commit6541726ee92108935b97449ed28d8dd28c0ef001 (patch)
tree969b458e4be58b25099981dc95c5d9e209ea8f66 /include
parenta822b9234b2f961f0bbdf2a0b20863d48c6de6e3 (diff)
parent9c2e9128f34d8a23eb567da07842fad041bfc57b (diff)
Merge branch '2022-09-14-refactor-ramdisk-code-again' into next
To quote the author: The previous attempt at this[1] broke a board and was reverted in [2]. This series adopts a slightly different approach, splitting the changes into many commits. [1] f33a2c1bd0f ("image: Remove #ifdefs from select_ramdisk()") [2] 621158d106f ("Revert "image: Remove #ifdefs from select_ramdisk()"")
Diffstat (limited to 'include')
-rw-r--r--include/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index e4c6a50b885..a148073113a 100644
--- a/include/image.h
+++ b/include/image.h
@@ -360,6 +360,12 @@ typedef struct bootm_headers {
#endif
} bootm_headers_t;
+#ifdef CONFIG_LMB
+#define images_lmb(_images) (&(_images)->lmb)
+#else
+#define images_lmb(_images) NULL
+#endif
+
extern bootm_headers_t images;
/*