Commit aaa5b6e0 authored by David Johnson's avatar David Johnson

Add Debian support for the mlnx ofed kernel modules.

We actually rebuild the mellanox ofed src packages via their build
process (the kernel modules only, but some userspace util dependent
packages also get built and installed, unfortunately), then install
those.
parent 22a495fc
......@@ -3,7 +3,7 @@ PKGTYPE ?= $(shell scripts/osstuff.sh -p)
DRIVERS =
ifeq ($(PKGTYPE),deb)
DRIVERS = i40e i40evf ixgbe ixgbevf mpt3sas
DRIVERS = i40e i40evf ixgbe ixgbevf mpt3sas mlnx-ofed-src
endif
ifeq ($(PKGTYPE),rpm)
DRIVERS = i40e i40evf ixgbe ixgbevf mpt3sas
......
VERSION = 4.4-2.0.7.0
DEBSRCPKG = MLNX_OFED_SRC-debian-$(VERSION).tgz
DEBSRCURL = http://www.mellanox.com/downloads/ofed/MLNX_OFED-$(VERSION)/$(DEBSRCPKG)
BUILDDIR = build
DEBSRCDIR = $(BUILDDIR)/MLNX_OFED_SRC-$(VERSION)
TARBALLDIR = ../../tarballs
DEBTARBALL = $(TARBALLDIR)/$(DEBSRCPKG)
FETCH = ../../scripts/fetch.sh
RPMPKGPATH = $(BUILDDIR)/RPMS/noarch/$(PKGNAME)-$(PKGVERSION).noarch.rpm
all:
clean: deb-clean
$(DEBTARBALL):
$(FETCH) $(TARBALLDIR) $(DEBSRCPKG)
$(DEBSRCDIR): $(DEBTARBALL)
if [ -d $(DEBSRCDIR) ]; then rm -rf $(DEBSRCDIR); fi
mkdir -p $(BUILDDIR)
tar -xzf $(DEBTARBALL) -C $(BUILDDIR)
touch $(DEBSRCDIR)
$(BUILDDIR)/.deb-built: | $(DEBSRCDIR)
cd $(DEBSRCDIR) && ./install.pl -b -vvv --kernel-only --force-dkms
touch $(BUILDDIR)/.deb-built
deb: $(BUILDDIR)/.deb-built
deb-install: deb
dpkg -i $(wildcard $(DEBSRCDIR)/DEBS/*/*/*.deb)
deb-clean:
rm -rf $(DEBSRCDIR)
.PHONY: all clean deb deb-install deb-clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment