Patrick Rudolph | 9e877ec | 2019-09-20 12:53:09 +0200 | [diff] [blame] | 1 | SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo |
| 2 | |
| 3 | $(SMCBIOSINFOTOOL): $(dir)/smcbiosinfo/smcbiosinfo.c |
| 4 | printf " HOSTCC Creating SMCBIOSINFO tool\n" |
| 5 | mkdir -p $(objutil)/supermicro |
| 6 | $(HOSTCC) $< -o $@ |
| 7 | |
Patrick Rudolph | a48e8f5 | 2020-01-08 15:44:21 +0100 | [diff] [blame] | 8 | ifeq ($(CONFIG_VENDOR_SUPERMICRO),y) |
| 9 | ifneq ($(call strip_quotes, $(CONFIG_SUPERMICRO_BOARDID)),) |
| 10 | |
Patrick Rudolph | 9e877ec | 2019-09-20 12:53:09 +0200 | [diff] [blame] | 11 | cbfs-files-y += smcbiosinfo.bin |
| 12 | |
| 13 | smcbiosinfo.bin-file := $(obj)/mainboard/$(MAINBOARDDIR)/smcbiosinfo.bin |
| 14 | smcbiosinfo.bin-type := raw |
| 15 | smcbiosinfo.bin-compression := none |
| 16 | |
| 17 | $(obj)/mainboard/$(MAINBOARDDIR)/smcbiosinfo.bin: $(SMCBIOSINFOTOOL) $(build_h) |
| 18 | printf " TOOL Creating SMC BIOSINFO metadata\n" |
| 19 | $(SMCBIOSINFOTOOL) -i $(build_h) -b $(CONFIG_SUPERMICRO_BOARDID) -o $@ |
| 20 | endif |
| 21 | endif |