config/functions: add get_module_dir()

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-13 09:22:11 +01:00
parent 2c9da84623
commit 7c1d6e4af9

View File

@ -65,6 +65,11 @@ kernel_version() {
echo ${PKG_VERSION} echo ${PKG_VERSION}
} }
# get kernel module dir
get_module_dir() {
basename $(ls -d $(get_build_dir linux)/.install_pkg/lib/modules/*)
}
# get package's build dir # get package's build dir
get_build_dir() { get_build_dir() {
if [ ! -z $1 ] ; then if [ ! -z $1 ] ; then