summaryrefslogtreecommitdiff
path: root/include/configs/ge_bx50v3.h
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.com>2020-12-15 00:41:53 +0100
committerStefano Babic <sbabic@denx.de>2020-12-26 12:37:28 +0100
commitdb43c0b72d1eb0dcf2778413743fcf355b5632a1 (patch)
treebd009c93ea7d474e40a2f18230f87036b94a714c /include/configs/ge_bx50v3.h
parent72397c9621ab37f117ac171d3090f11a2e6b33d6 (diff)
downloadu-boot-db43c0b72d1eb0dcf2778413743fcf355b5632a1.tar.gz
compiler.h: add host_build()
Add a host_build() function, so that it's possible to check for software being build with USE_HOSTCC without relying on preprocessor conditions. In other words #ifdef USE_HOSTCC host_only_code(); #endif can be written like this instead: if (host_build()) host_only_code(); This improves code readability and test coverage and compiler will eleminate this unreachable code. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/ge_bx50v3.h')
0 files changed, 0 insertions, 0 deletions