config/functions: fix kernel_path()

This commit is contained in:
Stefan Saraev 2013-12-12 20:57:57 +02:00
parent fcf9a2f96b
commit 88636d5472

View File

@ -56,7 +56,13 @@ setup_toolchain() {
}
kernel_path() {
ls -d $ROOT/$BUILD/linux-*
if [ -f $ROOT/packages/linux/package.mk ] ; then
. $ROOT/packages/linux/package.mk
elif [ -f $ROOT/packages/linux/meta ] ; then
# TODO: remove
. $ROOT/packages/linux/meta
fi
echo $ROOT/$BUILD/${PKG_NAME}-${PKG_VERSION}
}
tolower(){