summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-05-16 08:58:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-18 06:33:36 +0100
commitaa88e318f2bda1c3380ad786e299d20bb29aa933 (patch)
tree5968e17ad057a34d191d6db2cb7eb78e0ac726cf /scripts
parentc131b23cdbeab3db3a13533288481bcca68d23e3 (diff)
downloadpoky-aa88e318f2bda1c3380ad786e299d20bb29aa933.tar.gz
multilib_header_wrapper: Drop using __MHWORDSIZE
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 <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/multilib_header_wrapper.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h
index df01b56a72..88f3193812 100644
--- a/scripts/multilib_header_wrapper.h
+++ b/scripts/multilib_header_wrapper.h
@@ -5,22 +5,9 @@
5 * 5 *
6 */ 6 */
7 7
8#if defined (__arm__)
9#define __MHWORDSIZE 32
10#elif defined (__aarch64__) && defined ( __LP64__)
11#define __MHWORDSIZE 64
12#elif defined (__aarch64__)
13#define __MHWORDSIZE 32
14#else
15#include <bits/wordsize.h> 8#include <bits/wordsize.h>
16#if defined (__WORDSIZE)
17#define __MHWORDSIZE __WORDSIZE
18#else
19#error "__WORDSIZE is not defined"
20#endif
21#endif
22 9
23#if __MHWORDSIZE == 32 10#if __WORDSIZE == 32
24 11
25#ifdef _MIPS_SIM 12#ifdef _MIPS_SIM
26 13
@@ -36,7 +23,7 @@
36#include <ENTER_HEADER_FILENAME_HERE-32.h> 23#include <ENTER_HEADER_FILENAME_HERE-32.h>
37#endif 24#endif
38 25
39#elif __MHWORDSIZE == 64 26#elif __WORDSIZE == 64
40#include <ENTER_HEADER_FILENAME_HERE-64.h> 27#include <ENTER_HEADER_FILENAME_HERE-64.h>
41#else 28#else
42#error "Unknown __WORDSIZE detected" 29#error "Unknown __WORDSIZE detected"