1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright 2023 Oxide Computer Company 14# Copyright 2024 MNX Cloud, Inc. 15# 16 17UTSBASE = ../../.. 18 19# 20# Firmware location and files 21# 22# 23FW_VERSION_T4= 1.27.1.0 24FW_VERSION_T5= 1.27.5.0 25FW_VERSION_T6= 1.27.5.0 26 27FWDIR = $(UTSBASE)/common/io/cxgbe/firmware 28FWFILES = \ 29 t4fw-$(FW_VERSION_T4).bin \ 30 t5fw-$(FW_VERSION_T5).bin \ 31 t6fw-$(FW_VERSION_T6).bin 32FWLINKS = t4fw.bin t5fw.bin t6fw.bin 33CFGFILES = t4fw_cfg.txt t5fw_cfg.txt t6fw_cfg.txt 34 35MODULE = cxgbe 36ROOTFIRMWARE = \ 37 $(FWFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%) \ 38 $(FWLINKS:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%) \ 39 $(CFGFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%) 40 41include $(UTSBASE)/intel/Makefile.intel 42 43.KEEP_STATE: 44 45all def clean clobber: 46 47install: $(ROOTFIRMWARE) 48 49$(ROOT_FIRMWARE_DIR)/$(MODULE)/t4fw.bin := \ 50 INSLINKTARGET= t4fw-$(FW_VERSION_T4).bin 51$(ROOT_FIRMWARE_DIR)/$(MODULE)/t5fw.bin := \ 52 INSLINKTARGET= t5fw-$(FW_VERSION_T5).bin 53$(ROOT_FIRMWARE_DIR)/$(MODULE)/t6fw.bin := \ 54 INSLINKTARGET= t6fw-$(FW_VERSION_T6).bin 55 56# 57# Include common targets. 58# 59include $(UTSBASE)/intel/Makefile.targ 60 61# Force this symlink to be always re-created in order that the link in proto 62# does not become stale if the target is changed between incremental builds. 63$(ROOT_FIRMWARE_DIR)/$(MODULE)/%: FRC 64 $(INS.symlink) 65 66FRC: 67