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 \
|
||||
echo false; \
|
||||
fi),true)
|
||||
OFED_VERS=$(shell dpkg -s mlnx-ofed-kernel-dkms | \
|
||||
awk -F\- '/Version/ {print $$1}' | awk '{print $$2}')
|
||||
OFED_VERS=$(shell dpkg-query -W --showformat='${Version}\n' mlnx-ofed-kernel-dkms)
|
||||
else
|
||||
ifeq ($(shell if { rpm -q mlnx-ofa_kernel-devel || \
|
||||
rpm -q kernel-ib-devel; } >&/dev/null; then \
|
||||
|
||||
Reference in New Issue
Block a user