2023-09-27 18:43:12 +01:00
|
|
|
project('qbootctl', 'c', default_options : ['c_std=gnu11'])
|
2023-06-23 20:16:24 +01:00
|
|
|
|
2023-06-23 23:21:24 +01:00
|
|
|
cc = meson.get_compiler('c')
|
2022-06-04 04:42:40 +01:00
|
|
|
|
2023-06-23 20:16:24 +01:00
|
|
|
if not cc.has_header('linux/bsg.h')
|
|
|
|
|
error('linux-headers not found')
|
|
|
|
|
endif
|
|
|
|
|
|
2022-06-04 04:42:40 +01:00
|
|
|
src = [
|
2023-06-23 23:21:24 +01:00
|
|
|
'qbootctl.c',
|
|
|
|
|
'bootctrl_impl.c',
|
|
|
|
|
'gpt-utils.c',
|
|
|
|
|
'ufs-bsg.c',
|
2023-06-24 00:59:09 +01:00
|
|
|
'crc32.c',
|
2022-06-04 04:42:40 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
inc = [
|
|
|
|
|
include_directories('.'),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
executable('qbootctl', src,
|
|
|
|
|
include_directories: inc,
|
|
|
|
|
install: true,
|
|
|
|
|
c_args: [],
|
|
|
|
|
)
|