summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2018-08-14 09:47:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-13 10:55:13 +0100
commitedb02f0d1d313fb026e39cc320e63be7e0132e7b (patch)
treee37f12dde4ea17a66a939a0730de5883908b2f1b
parent9a3772e9411864301ca2799b4d5827476a6b7fcf (diff)
downloadopenembedded-core-contrib-edb02f0d1d313fb026e39cc320e63be7e0132e7b.tar.gz
openembedded-core-contrib-edb02f0d1d313fb026e39cc320e63be7e0132e7b.tar.bz2
openembedded-core-contrib-edb02f0d1d313fb026e39cc320e63be7e0132e7b.zip
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) 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 f516673b63..9660225fdd 100644
--- a/scripts/multilib_header_wrapper.h
+++ b/scripts/multilib_header_wrapper.h
@@ -22,7 +22,9 @@
*/
-#if defined (__arm__)
+#if defined (__bpf__)
+#define __MHWORDSIZE 64
+#elif defined (__arm__)
#define __MHWORDSIZE 32
#elif defined (__aarch64__) && defined ( __LP64__)
#define __MHWORDSIZE 64