summaryrefslogtreecommitdiff
path: root/util/supermicro/Makefile.inc
blob: 1aa5bcb437b4207fb3e49070541b8d8bbc3b4fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo

$(SMCBIOSINFOTOOL): $(dir)/smcbiosinfo/smcbiosinfo.c
	printf "    HOSTCC     Creating SMCBIOSINFO tool\n"
	mkdir -p $(objutil)/supermicro
	$(HOSTCC) $< -o $@

ifeq ($(CONFIG_VENDOR_SUPERMICRO),y)
ifneq ($(call strip_quotes, $(CONFIG_SUPERMICRO_BOARDID)),)

cbfs-files-y += smcbiosinfo.bin

smcbiosinfo.bin-file := $(obj)/mainboard/$(MAINBOARDDIR)/smcbiosinfo.bin
smcbiosinfo.bin-type := raw
smcbiosinfo.bin-compression := none

$(obj)/mainboard/$(MAINBOARDDIR)/smcbiosinfo.bin: $(SMCBIOSINFOTOOL) $(build_h)
	printf "    TOOL       Creating SMC BIOSINFO metadata\n"
	$(SMCBIOSINFOTOOL) -i $(build_h) -b $(CONFIG_SUPERMICRO_BOARDID) -o $@
endif
endif