summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2018-08-14 11:14:36 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-16 10:00:08 +0100
commitbb91b2ae3ee5cf108aa2f9b78abb14d5aa00831d (patch)
tree00084a523eba32ed0f9e21b44cad1a4471c542b8 /scripts
parente8df58c07aa2968bc268ba6d796244be5ebbc535 (diff)
downloadpoky-bb91b2ae3ee5cf108aa2f9b78abb14d5aa00831d.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: b4738c5cf68a3a5d38dcd42f5b8361378f247db0) 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