mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 13:14:45 +02:00

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 <richard.purdie@linuxfoundation.org>
49 lines
959 B
C
49 lines
959 B
C
/*
|
|
* Copyright (C) 2005-2011 by Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if defined (__bpf__)
|
|
#define __MHWORDSIZE 64
|
|
#elif defined (__arm__)
|
|
#define __MHWORDSIZE 32
|
|
#elif defined (__aarch64__) && defined ( __LP64__)
|
|
#define __MHWORDSIZE 64
|
|
#elif defined (__aarch64__)
|
|
#define __MHWORDSIZE 32
|
|
#else
|
|
#include <bits/wordsize.h>
|
|
#if defined (__WORDSIZE)
|
|
#define __MHWORDSIZE __WORDSIZE
|
|
#else
|
|
#error "__WORDSIZE is not defined"
|
|
#endif
|
|
#endif
|
|
|
|
#if __MHWORDSIZE == 32
|
|
|
|
#ifdef _MIPS_SIM
|
|
|
|
#if _MIPS_SIM == _ABIO32
|
|
#include <ENTER_HEADER_FILENAME_HERE-32.h>
|
|
#elif _MIPS_SIM == _ABIN32
|
|
#include <ENTER_HEADER_FILENAME_HERE-n32.h>
|
|
#else
|
|
#error "Unknown _MIPS_SIM"
|
|
#endif
|
|
|
|
#else /* _MIPS_SIM is not defined */
|
|
#include <ENTER_HEADER_FILENAME_HERE-32.h>
|
|
#endif
|
|
|
|
#elif __MHWORDSIZE == 64
|
|
#include <ENTER_HEADER_FILENAME_HERE-64.h>
|
|
#else
|
|
#error "Unknown __WORDSIZE detected"
|
|
#endif /* matches #if __WORDSIZE == 32 */
|
|
|