2019-03-30 01:51:07 +08:00
|
|
|
MAJOR=`grep '#define SOF_ABI_MAJOR ' $1/src/include/uapi/abi.h | grep -E ".[[:digit:]]$" -o`
|
|
|
|
MINOR=`grep '#define SOF_ABI_MINOR ' $1/src/include/uapi/abi.h | grep -E ".[[:digit:]]$" -o`
|
|
|
|
PATCH=`grep '#define SOF_ABI_PATCH ' $1/src/include/uapi/abi.h | grep -E ".[[:digit:]]$" -o`
|
2019-03-18 16:35:00 +08:00
|
|
|
printf "define(\`SOF_ABI_MAJOR', \`0x%02x')\n" $MAJOR > abi.h
|
|
|
|
printf "define(\`SOF_ABI_MINOR', \`0x%02x')\n" $MINOR >> abi.h
|
|
|
|
printf "define(\`SOF_ABI_PATCH', \`0x%02x')\n" $PATCH >> abi.h
|