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