diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2018-08-14 11:14:36 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-16 10:00:08 +0100 |
commit | bb91b2ae3ee5cf108aa2f9b78abb14d5aa00831d (patch) | |
tree | 00084a523eba32ed0f9e21b44cad1a4471c542b8 /scripts/multilib_header_wrapper.h | |
parent | e8df58c07aa2968bc268ba6d796244be5ebbc535 (diff) | |
download | poky-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/multilib_header_wrapper.h')
-rw-r--r-- | scripts/multilib_header_wrapper.h | 4 |
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 |