22 lines
703 B
Makefile
22 lines
703 B
Makefile
ifeq ($(CONFIG_VENDOR_SUPERMICRO),y)
|
|
ifneq ($(call strip_quotes, $(CONFIG_SUPERMICRO_BOARDID)),)
|
|
|
|
SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo
|
|
|
|
$(SMCBIOSINFOTOOL): $(dir)/smcbiosinfo/smcbiosinfo.c
|
|
printf " HOSTCC Creating SMCBIOSINFO tool\n"
|
|
mkdir -p $(objutil)/supermicro
|
|
$(HOSTCC) $< -o $@
|
|
|
|
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
|