mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
config/functions: simplify kernel_* functions
This commit is contained in:
parent
0dd42ece23
commit
ac04dfa3ec
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user