kni: avoid using lsb_release script
authorRobin Jarry <robin.jarry@6wind.com>
Fri, 25 Nov 2016 12:22:17 +0000 (13:22 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 7 Dec 2016 17:36:05 +0000 (18:36 +0100)
commit51c0c01b70294cc75250cc28619c9a19ca5579f7
treecea6d8a7365687a16317028866663c4727edbefd
parent65df6d069d21de497bec6a29063341f30c42e29c
kni: avoid using lsb_release script

The lsb_release script is part of an optional package which is not
always installed. On the other hand, /etc/lsb-release is always present
even on minimal Ubuntu installations.

    root@ubuntu1604:~# dpkg -S /etc/lsb-release
    base-files: /etc/lsb-release

Read the file if present and use the variables defined in it.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/Makefile