mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
iscsi-scst/Makefile, Ubuntu: Simplify code for version querying
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -70,8 +70,7 @@ ifeq ($(OFED_FLAVOR),MOFED)
|
|||||||
else \
|
else \
|
||||||
echo false; \
|
echo false; \
|
||||||
fi),true)
|
fi),true)
|
||||||
OFED_VERS=$(shell dpkg -s mlnx-ofed-kernel-dkms | \
|
OFED_VERS=$(shell dpkg-query -W --showformat='${Version}\n' mlnx-ofed-kernel-dkms)
|
||||||
awk -F\- '/Version/ {print $$1}' | awk '{print $$2}')
|
|
||||||
else
|
else
|
||||||
ifeq ($(shell if { rpm -q mlnx-ofa_kernel-devel || \
|
ifeq ($(shell if { rpm -q mlnx-ofa_kernel-devel || \
|
||||||
rpm -q kernel-ib-devel; } >&/dev/null; then \
|
rpm -q kernel-ib-devel; } >&/dev/null; then \
|
||||||
|
|||||||
Reference in New Issue
Block a user