drm/intel
Geert Uytterhoeven 5dba8d73df intel: determine target endianness using meson
The endianness of the target is currently determined based on
preprocessor symbols.  Unfortunately some symbols checked are wrong
(sparc64-linux-gnu-gcc does not define __BIG_ENDIAN__ or SPARC), and
several checks for big-endian architectures are missing.

Fix this by introducing a new preprocessor symbol HAVE_BIG_ENDIAN, which
is set based on meson's knowledge of the target endianness.

Android.common.mk does not need an update, as Android is always
little-endian (https://developer.android.com/ndk/guides/abis.html).

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
v5:
  - Add Reviewed-by,

v4:
  - Replace explicit #ifdef checks by a define set by meson,

v3:
  - No changes,

v2:
  - Add arm, aarch64, microblaze, s390, and sh.
2023-10-31 13:24:32 +00:00
..
tests intel: properly escape sed pattern for tests 2020-04-27 15:53:58 +00:00
.gitignore intel: Add a regression test program for intel_decode.c. 2012-01-04 14:49:44 -08:00
Android.mk Revert "libdrm: intel/Android.mk: Filter libdrm_intel library requirements on x86/x86_64" 2018-03-28 17:08:32 +01:00
Makefile.sources intel: Eliminate need to keep adding PCI IDs 2022-11-22 16:00:57 -08:00
intel-symbols.txt intel: convert to new symbols check 2019-11-11 22:57:14 +00:00
intel_aub.h intel/aub: Sync the AUB defines with mesa's 2013-06-10 17:51:17 +01:00
intel_bufmgr.c intel: annotate public functions 2018-09-19 22:46:44 -07:00
intel_bufmgr.h intel: Export a function to re-enable implicit synchronisation 2017-01-27 20:25:04 +00:00
intel_bufmgr_fake.c intel: add missing drm_public exports 2018-09-20 18:23:19 +01:00
intel_bufmgr_gem.c intel: Eliminate need to keep adding PCI IDs 2022-11-22 16:00:57 -08:00
intel_bufmgr_priv.h fix various typos 2019-04-17 18:23:25 +01:00
intel_chipset.h intel: Eliminate need to keep adding PCI IDs 2022-11-22 16:00:57 -08:00
intel_debug.h intel: shared header for shader debugging 2011-08-01 14:44:58 -07:00
intel_decode.c intel: Eliminate need to keep adding PCI IDs 2022-11-22 16:00:57 -08:00
libdrm_intel.pc.in intel: Update package name and description in libdrm_intel.pc 2013-08-30 12:10:50 -04:00
meson.build meson: drop pthread-stubs dependency on BSDs 2023-02-10 14:58:52 +00:00
mm.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
mm.h fix various typos 2019-04-17 18:23:25 +01:00
test_decode.c intel: Avoid aliasing violation 2022-08-23 22:54:15 +00:00
uthash.h intel: determine target endianness using meson 2023-10-31 13:24:32 +00:00