path: root/scripts/multilib_header_wrapper.h
Commit message (Collapse)AuthorAgeFilesLines
* multilib_header_wrapper: Drop using __MHWORDSIZEKhem Raj2020-05-181-15/+2
| | | | | | | | | | This is not needed as __WORDSIZE already represents same value and is directly defined in wordsize.h, this simplifies the multlib headers (From OE-Core rev: 3a6ba47ede9b1d66f6cb58a776255047a5d069ab) Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
* multilib_header: Fall back to worsize form libc for bpf targetKhem Raj2020-05-181-3/+1
| | | | | | | | | | Setting bpf to use 64bit for wordlength is not right, it happens to work perhaps becuase the targets its being run on are 64bit inherently (From OE-Core rev: 6d8c7e3426a74b1bc4752d508f68548480955853) Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
* multilib_header_wrapper.h: Remove pragma onceKhem Raj2020-05-181-2/+0
| | | | | | | | | | This was a bandaid to avoid include recursion caused by multilibbed wordsize.h (From OE-Core rev: 7496c8fd4b2d9a69ee764f196abaec6172be2f02) Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
* meta/lib+scripts: Convert to SPDX license headersRichard Purdie2019-05-091-17/+1
| | | | | | | | | | | | | | | | | | | | | | | This adds SPDX license headers in place of the wide assortment of things currently in our script headers. We default to GPL-2.0-only except for the oeqa code where it was clearly submitted and marked as MIT on the most part or some scripts which had the "or later" GPL versioning. The patch also drops other obsolete bits of file headers where they were encoountered such as editor modelines, obsolete maintainer information or the phrase "All rights reserved" which is now obsolete and not required in copyright headers (in this case its actually confusing for licensing as all rights were not reserved). More work is needed for OE-Core but this takes care of the bulk of the scripts and meta/lib directories. The top level LICENSE files are tweaked to match the new structure and the SPDX naming. (From OE-Core rev: f8c9c511b5f1b7dbd45b77f345cb6c048ae6763e) Signed-off-by: Richard Purdie <>
* multilib_header_wrapper.h: Use #pragma onceKhem Raj2019-02-061-0/+1
| | | | | | | | | | | | | | | | | | | | | Avoid infinite include loops, especially with bits/wordsize.h which is now possible with the synthesized headers since we now also synthesize bits/wordsize.h itelf for some arches e.g. arm/aarch64 In cases where extra preprocessing tools are used such as clang-tidy e.g. and these tools are not passed the knowledge about architecture then case comes where we enter into header include loop for bits/wordsize.h, since this template does explicitly include bits/wordsize.h To fix this emits the pragma once at beginning of file, this is better solution than include guards, and pragma once is practically supported on all compilers except few e.g. cray c/c++ compiler (From OE-Core rev: 6ab11ac25bb987642d5ca1a07f4bd5f30c66c9c5) Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
* multilib_header: recognize BPF as a targetDaniel Díaz2018-08-141-1/+3
| | | | | | | | | | | | 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 <> Signed-off-by: Richard Purdie <>
* multilib_header: Update wrapper to handle arm 32/64 bitRichard Purdie2017-03-311-10/+16
| | | | | | | | | | | | | Having arm 32/64 bit headers coexisting turns out to be tricky. Unfortunately our wrapper works using wordsize.h and this differs on arm so we can't use it. Therefore replicate the logic here for arm. I did look into writing our own wordsize.h but we also need to remap kernel headers on arm and since wordsize.h comes from libc, that doesn't work for kernel headers. (From OE-Core rev: 141dc7136c9c62da1d30132df4b3244fe6d8898d) Signed-off-by: Richard Purdie <>
* multilib_header.bbclass: Add oe_multilib_header wrapperMark Hatle2011-07-271-0/+55
This helper function and associated header will allow us to resolve two/three header files that conflict due to contents that change based on wordsize and ABI. (From OE-Core rev: 1fe66d01b7bce70a37245d47b1abce155fae926e) Signed-off-by: Mark Hatle <> Signed-off-by: Richard Purdie <>