1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Move endianness definitions and provide it inside Makefile

Add an `endiantest.c` similar to `archtest.c` to provide the endianness
inside the Makefile. The __FLASHROM_(LITTLE|BIG)_ENDIAN__ definitions
had to move from `hwaccess.h` into `platform.h`, therefor. This will
be used to decide whether to build the internal programmer in a follow-
up.

Change-Id: I55dcf5a88da48f885cda9ad89ab87395d895a891
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/22670
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
Nico Huber
2017-12-01 18:33:02 +00:00
parent 19eb0792b8
commit 095522ccec
4 changed files with 89 additions and 83 deletions

6
endiantest.c Normal file
View File

@ -0,0 +1,6 @@
#include "platform.h"
#if __FLASHROM_LITTLE_ENDIAN__
little
#else
big
#endif