xref: /illumos-gate/usr/src/uts/intel/cxgbe/firmware/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
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#
15
16UTSBASE = ../../..
17
18#
19# Firmware location and files
20#
21#
22FW_VERSION_T4=	1.27.1.0
23FW_VERSION_T5=	1.27.4.0
24FW_VERSION_T6=	1.27.4.0
25
26FWDIR	= $(UTSBASE)/common/io/cxgbe/firmware
27FWFILES	= \
28	t4fw-$(FW_VERSION_T4).bin \
29	t5fw-$(FW_VERSION_T5).bin \
30	t6fw-$(FW_VERSION_T6).bin
31FWLINKS = t4fw.bin t5fw.bin t6fw.bin
32CFGFILES = t4fw_cfg.txt t5fw_cfg.txt t6fw_cfg.txt
33
34MODULE		= cxgbe
35ROOTFIRMWARE	= \
36	$(FWFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%) \
37	$(FWLINKS:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%) \
38	$(CFGFILES:%=$(ROOT_FIRMWARE_DIR)/$(MODULE)/%)
39
40include $(UTSBASE)/intel/Makefile.intel
41
42.KEEP_STATE:
43
44all def clean clobber:
45
46install: $(ROOTFIRMWARE)
47
48$(ROOT_FIRMWARE_DIR)/$(MODULE)/t4fw.bin := \
49	INSLINKTARGET= t4fw-$(FW_VERSION_T4).bin
50$(ROOT_FIRMWARE_DIR)/$(MODULE)/t5fw.bin := \
51	INSLINKTARGET= t5fw-$(FW_VERSION_T5).bin
52$(ROOT_FIRMWARE_DIR)/$(MODULE)/t6fw.bin := \
53	INSLINKTARGET= t6fw-$(FW_VERSION_T6).bin
54
55#
56#	Include common targets.
57#
58include $(UTSBASE)/intel/Makefile.targ
59
60# Force this symlink to be always re-created in order that the link in proto
61# does not become stale if the target is changed between incremental builds.
62$(ROOT_FIRMWARE_DIR)/$(MODULE)/%: FRC
63	$(INS.symlink)
64
65FRC:
66