summaryrefslogtreecommitdiff
path: root/package/kmod
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2015-06-26 12:03:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-28 15:14:56 +0200
commit03d5e04dde97ed54893cbb93670cbfdfad6d39c7 (patch)
tree55d0552512efce8098e92c3b5b5add851f01d41d /package/kmod
parent3962e752d82e9b6e7e41e5ed3a777566212ad02e (diff)
enable using udev for automatic module loading
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Diffstat (limited to 'package/kmod')
-rw-r--r--package/kmod/Makefile9
-rw-r--r--package/kmod/patches/patch-libkmod_libkmod-util_c24
2 files changed, 9 insertions, 24 deletions
diff --git a/package/kmod/Makefile b/package/kmod/Makefile
index 59f3c0208..88037f45c 100644
--- a/package/kmod/Makefile
+++ b/package/kmod/Makefile
@@ -20,8 +20,10 @@ PKG_SUBPKGS:= KMOD LIBKMOD
PKGSD_LIBKMOD:= kernel module library
PKGSC_LIBKMOD:= libs/misc
+include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
+$(eval $(call HOST_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBKMOD,libkmod,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBKMOD},${PKGSD_LIBKMOD},${PKGSC_LIBKMOD},${PKG_OPTS}))
@@ -44,4 +46,11 @@ libkmod-install:
$(CP) $(WRKINST)/usr/lib/libkmod*.so* \
$(IDIR_LIBKMOD)/usr/lib
+HOST_CONFIGURE_ARGS+= --disable-manpages \
+ --disable-logging
+
+hostpost-install:
+ ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/depmod
+
+include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/kmod/patches/patch-libkmod_libkmod-util_c b/package/kmod/patches/patch-libkmod_libkmod-util_c
deleted file mode 100644
index 330fce456..000000000
--- a/package/kmod/patches/patch-libkmod_libkmod-util_c
+++ /dev/null
@@ -1,24 +0,0 @@
---- kmod-15.orig/libkmod/libkmod-util.c 2013-07-15 17:45:31.000000000 +0200
-+++ kmod-15/libkmod/libkmod-util.c 2013-12-21 18:02:49.000000000 +0100
-@@ -28,6 +28,7 @@
- #include <unistd.h>
- #include <errno.h>
- #include <string.h>
-+#include <limits.h>
- #include <ctype.h>
-
- #include "libkmod.h"
-@@ -323,8 +324,12 @@ static inline int is_dir(const char *pat
- int mkdir_p(const char *path, int len, mode_t mode)
- {
- char *start, *end;
-+ char buf[PATH_MAX+1];
-
-- start = strndupa(path, len);
-+ snprintf(buf, sizeof buf, "%s", path);
-+ assert(len < sizeof(buf));
-+ buf[len] = 0;
-+ start = buf;
- end = start + len;
-
- /*