PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD="http" SRC_FETCH_PATH="http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-${PKGVER}.tar.gz" MAKEDEPENDS=( "zlib-*:::*.so *.h *.so.*" ) function do_config { CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ PKG_CONFIG=/bin/true \ zlib_LIBS=-lz \ ./configure --build="$FLXHOST" --target="$FLXTARG" \ --prefix=/usr \ --sysconfdir=/etc --sbindir=/sbin --bindir=/sbin \ --disable-manpages --disable-test-modules \ --disable-logging \ --with-zlib } function do_compile_only { $FLXPMAKE \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR for i in depmod insmod lsmod modinfo modprobe rmmod; do ln -s kmod $ROOTDIR/sbin/$i done }