git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f86580f
)
xpl: Add a function to indicate when in xPL
author
Simon Glass
<sjg@chromium.org>
Mon, 30 Sep 2024 01:49:38 +0000
(19:49 -0600)
committer
Tom Rini
<trini@konsulko.com>
Fri, 11 Oct 2024 17:44:47 +0000
(11:44 -0600)
Add the opposite function to not_xpl() for completeness.
Signed-off-by: Simon Glass <sjg@chromium.org>
include/spl.h
patch
|
blob
|
history
diff --git
a/include/spl.h
b/include/spl.h
index
9484861
..
fe2df78
100644
(file)
--- a/
include/spl.h
+++ b/
include/spl.h
@@
-144,6
+144,16
@@
static inline bool not_xpl(void)
return true;
}
+/* returns true if in xPL, false if in U-Boot proper */
+static inline bool is_xpl(void)
+{
+#ifdef CONFIG_XPL_BUILD
+ return true;
+#endif
+
+ return false;
+}
+
/**
* spl_prev_phase() - Figure out the previous U-Boot phase
*