2019-06-02 04:52:02 +08:00
|
|
|
#!/bin/bash
|
2019-06-02 04:58:16 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2019 Intel Corporation. All rights reserved.
|
|
|
|
|
2019-05-31 21:04:48 +08:00
|
|
|
MAJOR=`grep '#define SOF_ABI_MAJOR ' $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o`
|
|
|
|
MINOR=`grep '#define SOF_ABI_MINOR ' $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o`
|
|
|
|
PATCH=`grep '#define SOF_ABI_PATCH ' $1/src/include/kernel/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
|