1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

Endian conversion: move to platform.h and platform/endian*.c

Starting to move the platform dependent code to platform/ and provide
the abstraction through the platform.h header.

Change-Id: I35640282d451960f2a329ae24339ec05dbae6d30
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62899
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Thomas Heijligen
2022-03-17 13:41:17 +01:00
committed by Nico Huber
parent 6272c71fbb
commit b1db7e4367
6 changed files with 12 additions and 11 deletions

View File

@ -136,11 +136,11 @@ if cc.check_header('sys/utsname.h')
endif
if host_machine.endian() == 'little'
srcs += 'hwaccess_endian_little.c'
srcs += 'platform/endian_little.c'
add_project_arguments('-D__FLASHROM_LITTLE_ENDIAN__=1', language : 'c')
endif
if host_machine.endian() == 'big'
srcs += 'hwaccess_endian_big.c'
srcs += 'platform/endian_big.c'
add_project_arguments('-D__FLASHROM_BIG_ENDIAN__=1', language : 'c')
endif