kmod: add support for host-build

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-12-25 18:56:38 +01:00
parent d6d9064555
commit f77ddec49b

View File

@ -24,6 +24,7 @@ PKG_LICENSE="GPL"
PKG_SITE="http://git.profusion.mobi/cgit.cgi/kmod.git/"
PKG_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS_HOST="toolchain"
PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="system"
@ -33,6 +34,17 @@ PKG_LONGDESC="kmod offers the needed flexibility and fine grained control over i
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
PKG_CONFIGURE_OPTS_HOST="--enable-tools \
--disable-logging \
--disable-debug \
--disable-gtk-doc \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--disable-manpages \
--with-gnu-ld \
--without-xz \
--without-zlib"
PKG_CONFIGURE_OPTS_TARGET="--enable-tools \
--enable-logging \
--disable-debug \
@ -44,6 +56,10 @@ PKG_CONFIGURE_OPTS_TARGET="--enable-tools \
--without-xz \
--without-zlib"
post_makeinstall_host() {
ln -sf kmod $ROOT/$TOOLCHAIN/bin/depmod
}
post_makeinstall_target() {
# make symlinks for compatibility
mkdir -p $INSTALL/sbin