e16971ac64
We rely on `compiler.h` for definitions like `__packed`. Without it, `smcbiosinfo.c` simply declared a global struct with that name, but nothing was packed. Found-by: reproducibility test Change-Id: Ide055317115fc374a63812bcd3791445ca4f2dcc Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41784 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
23 lines
803 B
Makefile
23 lines
803 B
Makefile
TOOLCPPFLAGS += -include $(top)/src/commonlib/bsd/include/commonlib/bsd/compiler.h
|
|
|
|
SMCBIOSINFOTOOL:= $(objutil)/supermicro/smcbiosinfo
|
|
|
|
$(SMCBIOSINFOTOOL): $(dir)/smcbiosinfo/smcbiosinfo.c
|
|
printf " HOSTCC Creating SMCBIOSINFO tool\n"
|
|
mkdir -p $(objutil)/supermicro
|
|
$(HOSTCC) $(TOOLCPPFLAGS) $< -o $@
|
|
|
|
ifeq ($(CONFIG_VENDOR_SUPERMICRO),y)
|
|
ifneq ($(call strip_quotes, $(CONFIG_SUPERMICRO_BOARDID)),)
|
|
|
|
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
|