mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
kmod: add support for host-build
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d6d9064555
commit
f77ddec49b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user