2 # SPDX-License-Identifier: LGPL-2.1
5 linux_header_dir
=tools
/include
/uapi
/linux
10 linux_mount
=${linux_header_dir}/mount.h
12 printf "static const char *fspick_flags[] = {\n"
13 regex
='^[[:space:]]*#[[:space:]]*define[[:space:]]+FSPICK_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+)[[:space:]]*.*'
14 egrep $regex ${linux_mount} | \
15 sed -r "s/$regex/\2 \1/g" | \
16 xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n"