[oe-commits] [openembedded-core] 07/08: multilib_header: recognize BPF as a target

git at git.openembedded.org git at git.openembedded.org
Thu Sep 13 09:56:05 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit edb02f0d1d313fb026e39cc320e63be7e0132e7b
Author: Daniel Díaz <daniel.diaz at linaro.org>
AuthorDate: Tue Aug 14 09:47:03 2018 -0500

    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 at linaro.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/multilib_header_wrapper.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list