1 ## SPDX-License-Identifier: GPL-2.0-only
2 TOOLCPPFLAGS
+= -include $(top
)/src
/commonlib
/bsd
/include/commonlib
/bsd
/compiler.h
4 SMCBIOSINFOTOOL
:= $(objutil
)/supermicro
/smcbiosinfo
6 $(SMCBIOSINFOTOOL
): $(dir)/smcbiosinfo
/smcbiosinfo.c
7 printf
" HOSTCC Creating SMCBIOSINFO tool\n"
8 mkdir
-p
$(objutil
)/supermicro
9 $(HOSTCC
) $(TOOLCPPFLAGS
) $< -o
$@
11 ifeq ($(CONFIG_VENDOR_SUPERMICRO
),y
)
12 ifneq ($(call strip_quotes
, $(CONFIG_SUPERMICRO_BOARDID
)),)
14 cbfs-files-y
+= smcbiosinfo.bin
16 smcbiosinfo.bin-file
:= $(obj
)/mainboard
/$(MAINBOARDDIR
)/smcbiosinfo.bin
17 smcbiosinfo.bin-type
:= raw
18 smcbiosinfo.bin-compression
:= none
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
$@