From 7c1d6e4af9ceec14c856f004fec7bd894b04fca8 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 13 Jan 2014 09:22:11 +0100 Subject: [PATCH] config/functions: add get_module_dir() Signed-off-by: Stephan Raue --- config/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/functions b/config/functions index 36fbd057f5..8850e1a5d6 100644 --- a/config/functions +++ b/config/functions @@ -65,6 +65,11 @@ kernel_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_build_dir() { if [ ! -z $1 ] ; then