Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 857937d

Browse files
alexrallensaiarcot895
authored andcommitted
Mellanox bullseye merge (#1)
* Make neccesary changed to mellanox platform code to build on Debian 11 * Revert use of backported kernel to build mft and elect to only build kernel module under bullseye
1 parent 166efef commit 857937d

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

platform/mellanox/mft.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ $(MFT)_SRC_PATH = $(PLATFORM_PATH)/mft
2626
SONIC_MAKE_DEBS += $(MFT)
2727

2828
ifeq ($(BLDENV), bullseye)
29-
$(MFT)_DEPENDS = $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
30-
endif
29+
$(MFT)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
3130

3231
KERNEL_MFT = kernel-mft-dkms-modules-$(KVERSION)_$(MFT_VERSION)_amd64.deb
3332
$(eval $(call add_derived_package,$(MFT),$(KERNEL_MFT)))
33+
endif
3434

3535
MFT_OEM = mft-oem_$(MFT_VERSION)-$(MFT_REVISION)_amd64.deb
3636
$(eval $(call add_derived_package,$(MFT),$(MFT_OEM)))

platform/mellanox/mft/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
3535
wget -O $(MFT_TGZ) http://www.mellanox.com/downloads/MFT/$(MFT_TGZ)
3636
tar xzf $(MFT_TGZ)
3737

38+
ifeq ($(BLDENV), bullseye)
3839
pushd $(MFT_NAME)/SDEBS
3940

4041
# put a lock here because dpkg does not allow installing packages in parallel
@@ -46,7 +47,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
4647

4748
popd
4849

49-
sudo dkms build kernel-mft-dkms/$(MFT_VERSION) -k $(KVERSION) -a amd64 --kernelsourcedir /usr/src/linux-headers-$(KVERSION)
50+
sudo dkms build kernel-mft-dkms/$(MFT_VERSION) -k $(KVERSION) -a amd64
5051
sudo dkms mkbmdeb kernel-mft-dkms/$(MFT_VERSION) -k $(KVERSION) -a amd64
5152

5253
# w/a: remove dependencies
@@ -62,6 +63,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
6263
popd
6364

6465
rm -rf $(DKMS_TMP)
66+
endif
6567

6668
# fix timestamp because we do not actually build tools, only kernel
6769
touch $(MFT_NAME)/DEBS/*.deb

platform/mellanox/rules.mk

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
18-
# Set KVERSION correctly depending on build environment
19-
ifeq ($(BLDENV), buster)
20-
KVERSION = 5.10.0-0.bpo.9-amd64
21-
endif
22-
2317
include $(PLATFORM_PATH)/sdk.mk
2418
include $(PLATFORM_PATH)/fw.mk
2519
include $(PLATFORM_PATH)/mft.mk

sonic-slave-buster/Dockerfile.j2

-4
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ RUN apt-get update && apt-get install -y \
153153
# For mellanox sai build
154154
libtool-bin \
155155
libxml2-dev \
156-
# For mellanox MFT build
157-
linux-image-5.10.0-0.bpo.9-amd64 \
158-
linux-headers-5.10.0-0.bpo.9-amd64 \
159-
linux-headers-5.10.0-0.bpo.9-common \
160156
# For BFN sdk build
161157
libusb-1.0-0-dev \
162158
libcurl3-nss-dev \

0 commit comments

Comments
 (0)