From 6963eb7bdaacf39e26317803d6542122a6118384 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 21 Dec 2013 08:42:05 +0100 Subject: [PATCH] config/functions: add function 'kernel_version' Signed-off-by: Stephan Raue --- config/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/functions b/config/functions index a87c9ac35e..bd09f3bda5 100644 --- a/config/functions +++ b/config/functions @@ -65,6 +65,11 @@ kernel_path() { echo $ROOT/$BUILD/${PKG_NAME}-${PKG_VERSION} } +kernel_version() { + . $ROOT/packages/linux/package.mk + echo ${PKG_VERSION} +} + # get package's build dir get_build_dir() { if [ ! -z $1 ] ; then