A port of the Qualcomm Android bootctrl HAL for musl/glibc userspace.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
project('qbootctl', 'c', default_options : ['c_std=c11'])
|
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
dependency('zlib'),
|
|
|
|
]
|
|
|
|
|
|
|
|
if not cc.has_header('linux/bsg.h')
|
|
|
|
error('linux-headers not found')
|
|
|
|
endif
|
|
|
|
|
|
|
|
src = [
|
|
|
|
'qbootctl.c',
|
|
|
|
'bootctrl_impl.c',
|
|
|
|
'bootctrl_test.c',
|
|
|
|
'gpt-utils.c',
|
|
|
|
'ufs-bsg.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
inc = [
|
|
|
|
include_directories('.'),
|
|
|
|
]
|
|
|
|
|
|
|
|
executable('qbootctl', src,
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: deps,
|
|
|
|
install: true,
|
|
|
|
c_args: [],
|
|
|
|
)
|