config/functions: add function 'kernel_version'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-12-21 08:42:05 +01:00
parent 82ed6edd4c
commit 6963eb7bda

View File

@ -65,6 +65,11 @@ kernel_path() {
echo $ROOT/$BUILD/${PKG_NAME}-${PKG_VERSION} echo $ROOT/$BUILD/${PKG_NAME}-${PKG_VERSION}
} }
kernel_version() {
. $ROOT/packages/linux/package.mk
echo ${PKG_VERSION}
}
# get package's build dir # get package's build dir
get_build_dir() { get_build_dir() {
if [ ! -z $1 ] ; then if [ ! -z $1 ] ; then