aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2013-07-02 21:03:20 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2013-07-02 21:15:54 -0300
commit9de9e07da6ce6fc110b4359ff058b13b5e92dcf4 (patch)
treec83930685042d3b4c0ba68cd5c21d00355f2eae8 /tools
parenta5cbde4bcea66e80418bada4e0aedbc26713e5ed (diff)
downloadkmod-9de9e07da6ce6fc110b4359ff058b13b5e92dcf4.tar.gz
tools: Use test/kmod instead of kmod-nolib
The reason to have a kmod-nolib binary is that we need to call kmod on test cases (or a symlink to it) and for testing things in tree. Since we are using libtool if we are dinamically linking to libkmod what we end up having is a shell script that (depending on the version *) changes argv[0] to contain an "lt-" prefix. Since this screws with our compat stuff, we had a kmod-nolib that links statically. This all workaround works fine iff we are using one of the compat commands, i.e. we are using the symlinks insmod, rmmod, modprobe, etc. However if we are actually trying the kmod binary, this doesn't work because we can't create a kmod symlink since there's already a kmod binary. So, completely give up on libtool fixing their mess. Now we create a tool/test/ directory and the symlinks and kmod is put there. * http://lists.gnu.org/archive/html/bug-libtool/2011-12/msg00023.html
Diffstat (limited to 'tools')
-rw-r--r--tools/.gitignore2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/.gitignore b/tools/.gitignore
index d77b2dc..3e34160 100644
--- a/tools/.gitignore
+++ b/tools/.gitignore
@@ -7,9 +7,9 @@
/kmod-lsmod
/kmod-modinfo
/kmod-modprobe
-/kmod-nolib
/kmod-rmmod
/lsmod
/modinfo
/modprobe
/rmmod
+/test