summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2018-08-14 14:47:03 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-13 09:55:38 (GMT)
commit40a817a0384454a2f421d30a5f317cdb5e680220 (patch)
tree77032a652d51b107548b127d1badc2e0974f66e0
parent094c364e4e66a77f8c967062fc6892beff39c92a (diff)
downloadpoky-40a817a0384454a2f421d30a5f317cdb5e680220.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) (From OE-Core rev: 58abe666d3bad7a915c244c61085482e94b3d549) (From OE-Core rev: edb02f0d1d313fb026e39cc320e63be7e0132e7b) Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 f516673..9660225 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