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