blob: 5a74cef7230e70525b1b1768403720aac76a56b5 [file] [log] [blame]
srcs += files(
('endian_' + host_machine.endian() + '.c'),
'memaccess.c',
)
if host_machine.endian() == 'little'
add_project_arguments('-D__FLASHROM_LITTLE_ENDIAN__=1', language : 'c')
endif
if host_machine.endian() == 'big'
add_project_arguments('-D__FLASHROM_BIG_ENDIAN__=1', language : 'c')
endif