aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-12-28 07:44:03 -0500
committerTom Rini <trini@konsulko.com>2020-12-28 07:44:03 -0500
commitab865a8ee5c1a069f72a171270c02c99ccda7bfa (patch)
treeb4ac4a8519bc0128f12de2a13a8311c0f845f5b5 /include/compiler.h
parent1c3d1aa00617dbbdd92f0d5a2df40d7784dfcc13 (diff)
parent26c7048dd9d04158a23e9dbfe3f0dccc4febcaed (diff)
Merge tag 'u-boot-imx-20201227' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
Fixes for 2021.1 ---------------- CI: https://gitlab.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/5680 - fixes for Variscite dart6ul - imx8mp : increase malloc area - fixes for bx50v3 - imx8m: HS400ES and UHS for EVK - imx8qm-rom7720: fix phy bind
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 90b7afae53..27b9843497 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -6,6 +6,7 @@
#define __COMPILER_H__
#include <stddef.h>
+#include <stdbool.h>
#ifdef USE_HOSTCC
@@ -150,4 +151,12 @@ typedef unsigned long int uintptr_t;
#define MEM_SUPPORT_64BIT_DATA 0
#endif
+static inline bool host_build(void) {
+#ifdef USE_HOSTCC
+ return true;
+#else
+ return false;
+#endif
+}
+
#endif