config/functions: simplify kernel_* functions

This commit is contained in:
MilhouseVH 2017-01-31 22:09:30 +00:00
parent 0dd42ece23
commit ac04dfa3ec

View File

@ -104,23 +104,11 @@ setup_toolchain() {
}
kernel_path() {
if [ -e $ROOT/projects/$PROJECT/packages/linux/package.mk ]; then
. $ROOT/projects/$PROJECT/packages/linux/package.mk
else
. $ROOT/packages/linux/package.mk
fi
echo $ROOT/$BUILD/${PKG_NAME}-${PKG_VERSION}
get_build_dir linux
}
kernel_version() {
if [ -e $ROOT/projects/$PROJECT/packages/linux/package.mk ]; then
. $ROOT/projects/$PROJECT/packages/linux/package.mk
else
. $ROOT/packages/linux/package.mk
fi
echo ${PKG_VERSION}
get_pkg_version linux
}
# get kernel module dir