Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 # SPDX-License-Identifier: LGPL-2.1
0003 
0004 if [ $# -ne 1 ] ; then
0005         linux_header_dir=tools/include/uapi/linux
0006 else
0007         linux_header_dir=$1
0008 fi
0009 
0010 linux_mount=${linux_header_dir}/mount.h
0011 
0012 printf "static const char *fsconfig_cmds[] = {\n"
0013 ms='[[:space:]]*'
0014 sed -nr "s/^${ms}FSCONFIG_([[:alnum:]_]+)${ms}=${ms}([[:digit:]]+)${ms},.*/\t[\2] = \"\1\",/p" \
0015         ${linux_mount}
0016 printf "};\n"