| 1 |
|
| 2 |
TOOLCPPFLAGS += -include $(top)/src/commonlib/bsd/include/commonlib/bsd/compiler.h |
| 3 |
|
| 4 |
SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo |
| 5 |
|
| 6 |
$(SMCBIOSINFOTOOL): $(dir)/smcbiosinfo/smcbiosinfo.c |
| 7 |
printf " HOSTCC Creating SMCBIOSINFO tool\n" |
| 8 |
mkdir -p $(objutil)/supermicro |
| 9 |
$(HOSTCC) $(TOOLCPPFLAGS) $< -o $@ |
| 10 |
|
| 11 |
ifeq ($(CONFIG_VENDOR_SUPERMICRO),y) |
| 12 |
ifneq ($(call strip_quotes, $(CONFIG_SUPERMICRO_BOARDID)),) |
| 13 |
|
| 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 |