diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-12-09 11:18:13 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-12-09 11:18:13 +0200 |
commit | 64660f1ff4d245e96eb93da54e94825e37b2c115 (patch) | |
tree | bd02f5ed39b580b0cc1c8101f569a8671c643aed | |
parent | 0f604284e8eb2c9b942e204e088693985ca06e4e (diff) |
add CentOS7 .ko + add automatic try to compile the .ko
Change-Id: I467aabb0efa8e50d779257b2a3e7ca8adf25221f
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r-- | scripts/ko/3.10.0-327.el7.x86_64/igb_uio.ko | bin | 0 -> 236751 bytes | |||
-rwxr-xr-x | scripts/trex-cfg | 24 |
2 files changed, 17 insertions, 7 deletions
diff --git a/scripts/ko/3.10.0-327.el7.x86_64/igb_uio.ko b/scripts/ko/3.10.0-327.el7.x86_64/igb_uio.ko Binary files differnew file mode 100644 index 00000000..a85b9add --- /dev/null +++ b/scripts/ko/3.10.0-327.el7.x86_64/igb_uio.ko diff --git a/scripts/trex-cfg b/scripts/trex-cfg index 714aea6c..c6f12a7e 100755 --- a/scripts/trex-cfg +++ b/scripts/trex-cfg @@ -55,13 +55,23 @@ if ! lsmod | grep -q igb_uio ; then fi else echo "ERROR: We don't have precompiled igb_uio.ko module for your kernel version" - echo "You can try compiling yourself, using the following commands:" - echo "\$cd ko/src " - echo "\$make " - echo "\$make install " - echo "\$cd - " - echo "Then try to run Trex again" - exit 1 + echo Will try compiling automatically. + { + cd ko/src && + make && + make install && + cd - + } &> /dev/null || { + echo Automatic compilation failed. + echo "You can try compiling yourself, using the following commands:" + echo "\$cd ko/src " + echo "\$make " + echo "\$make install " + echo "\$cd - " + echo "Then try to run TRex again" + exit 1 + } + echo Success. fi fi |