aboutsummaryrefslogtreecommitdiff
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-08-15 12:43:55 +0100
commit58abe666d3bad7a915c244c61085482e94b3d549 (patch)
treeb69e9b647540d2b286cd2250456aa78c3b7b1533
parentbdf13518e79ab949c4320226a399ee4a3913ee30 (diff)
downloadopenembedded-core-rocko-next.zip
openembedded-core-rocko-next.tar.gz
openembedded-core-rocko-next.tar.bz2
multilib_header: recognize BPF as a targetrocko-next
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>
-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 @@
*/
-#if defined (__arm__)
+#if defined (__bpf__)
+#define __MHWORDSIZE 64
+#elif defined (__arm__)
#define __MHWORDSIZE 32
#elif defined (__aarch64__) && defined ( __LP64__)
#define __MHWORDSIZE 64