config/functions: simplify kernel_* functions

This commit is contained in:
MilhouseVH 2017-01-31 22:09:30 +00:00
parent cecbcf1631
commit a6d7d01697

View File

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