kni: fix build on Ubuntu 12.04
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Wed, 20 Aug 2014 09:42:53 +0000 (10:42 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 21 Aug 2014 21:01:40 +0000 (23:01 +0200)
commit35170c52d0ae33dc30e69bcf681e5a17168bf11e
tree0e968ece50edb62758ff9d6f35efa55e2b424a2e
parent8777aabc538fdac24457958eaab929f33d6c4cdf
kni: fix build on Ubuntu 12.04

On Ubuntu 12.04.4 file '/proc/version_signature' contains
'Ubuntu 3.11.0-15.25~precise1-generic 3.11.10'. This introduce compilation
error since '~precise1' will not be discarded. This patch discards
everything after '~' inclusively.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/kni/Makefile