mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
config/functions: simplify kernel_* functions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user