blob: 5a74cef7230e70525b1b1768403720aac76a56b5 [file] [log] [blame]
Thomas Heijligen328a64a2022-04-25 14:42:17 +02001srcs += files(
2 ('endian_' + host_machine.endian() + '.c'),
3 'memaccess.c',
4)
5
6if host_machine.endian() == 'little'
7 add_project_arguments('-D__FLASHROM_LITTLE_ENDIAN__=1', language : 'c')
8endif
9if host_machine.endian() == 'big'
10 add_project_arguments('-D__FLASHROM_BIG_ENDIAN__=1', language : 'c')
11endif