summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2018-08-09 12:14:54 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:31 +0100
commitc870856a2d625369d6acefc27676ab7b8b69282e (patch)
tree7d4354992370de7e973013cc256619acd6a957ea /scripts
parentbb2db478761831cfd8f78c1ea074f1c695b9823f (diff)
downloadpoky-c870856a2d625369d6acefc27676ab7b8b69282e.tar.gz
multilib_header: recognize BPF as a target
When building with `clang -target bpf` using the multilib_header, a recursion was unavoidable because bits/wordsize.h would #include itself, still lacking a definition for __MHWORDSIZE or __WORDSIZE. (From OE-Core rev: 70b41b3c335a80b4ac243f468f22331d261299db) Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/multilib_header_wrapper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h
index f516673b63..9660225fdd 100644
--- a/scripts/multilib_header_wrapper.h
+++ b/scripts/multilib_header_wrapper.h
@@ -22,7 +22,9 @@
22 */ 22 */
23 23
24 24
25#if defined (__arm__) 25#if defined (__bpf__)
26#define __MHWORDSIZE 64
27#elif defined (__arm__)
26#define __MHWORDSIZE 32 28#define __MHWORDSIZE 32
27#elif defined (__aarch64__) && defined ( __LP64__) 29#elif defined (__aarch64__) && defined ( __LP64__)
28#define __MHWORDSIZE 64 30#define __MHWORDSIZE 64