summaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-26 04:43:14 +0300
committerTom Rini <trini@konsulko.com>2021-10-08 22:53:26 +0300
commitc9d6b5b5dcce6820ea794af5f046803cdd43b37b (patch)
tree2eeb3cba201c8c492fa34436b5f5439ced86a03c /include/compiler.h
parent4ed37abc49c20b5dd0dc3ecd3eac53659057e455 (diff)
downloadu-boot-c9d6b5b5dcce6820ea794af5f046803cdd43b37b.tar.xz
compiler: Rename host_build() to tools_build()
With the new TOOLS_LIBCRYPTO and some other changes, it seems that we are heading towards calling this a tools build rather than a host build, although of course it does happen on the host. I cannot think of anything built by the host which cannot be described as a tool, so rename this function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 6b0d3bf537..8cf11792e2 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -155,11 +155,12 @@ typedef unsigned long int uintptr_t;
#endif
/**
- * host_build() - check if we are building for the host
+ * tools_build() - check if we are building host tools
*
* @return true if building for the host, false if for a target
*/
-static inline bool host_build(void) {
+static inline bool tools_build(void)
+{
#ifdef USE_HOSTCC
return true;
#else