sonic-buildimage/platform/mellanox/bios.mk
Nazarii Hnydyn 83b6518ae2
[202012][mellanox]: Add BIOS upgrade infra (#13571)
- Why I did it
Added BIOS upgrade infra

- How I did it
Added new make target

- How to verify it
Copy msn3800_bios.tar.gz to platform/mellanox/bios
make configure PLATFORM=mellanox
make target/files/buster/msn3800_bios.tar.gz

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
2023-02-02 10:07:03 +02:00

16 lines
412 B
Makefile

# Mellanox BIOS Firmware
ifeq ($(shell [ -f $(PLATFORM_PATH)/bios/msn3800_bios.tar.gz ] && echo yes),yes)
MLNX_SN3800_BIOS_ARCHIVE = msn3800_bios.tar.gz
$(MLNX_SN3800_BIOS_ARCHIVE)_PATH = $(PLATFORM_PATH)/bios/
SONIC_COPY_FILES += $(MLNX_SN3800_BIOS_ARCHIVE)
MLNX_BIOS_ARCHIVES += $(MLNX_SN3800_BIOS_ARCHIVE)
endif
ifdef MLNX_BIOS_ARCHIVES
MLNX_FILES += $(MLNX_BIOS_ARCHIVES)
export MLNX_BIOS_ARCHIVES
endif