drivers/amd/opensil/mpio: Factor out common MPIO symbols from vendorcode
[coreboot.git] / src / ec / starlabs / merlin / Makefile.mk
blob841b65959ae81ebe482a47e25a88eb516eee721d
1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifeq ($(CONFIG_EC_STARLABS_ITE),y)
5 PHONY+=add_ite_fw
6 INTERMEDIATE+=add_ite_fw
8 EC_VARIANT_DIR := $(call strip_quotes, $(CONFIG_EC_VARIANT_DIR))
9 CPPFLAGS_common += -I$(src)/ec/starlabs/merlin/variants/$(EC_VARIANT_DIR)
11 all-y += ite.c
13 ifeq ($(CONFIG_EC_STARLABS_NEED_ITE_BIN),y)
14 ifeq ($(CONFIG_EC_STARLABS_ADD_ITE_BIN),y)
15 add_ite_fw: $(obj)/coreboot.pre
16 $(CBFSTOOL) $(obj)/coreboot.pre write -r EC -f $(CONFIG_EC_STARLABS_ITE_BIN_PATH) -u
17 else
18 show_notices:: warn_no_ite_fw
20 PHONY+=warn_no_ite_fw
21 warn_no_ite_fw:
22 printf "\n\t** WARNING **\n"
23 printf "coreboot has been built without the ITE EC Firmware.\n"
24 printf "Do not flash this image. Your laptop's power button\n"
25 printf "may not respond when you press it.\n\n"
26 endif
27 endif
28 endif
30 ifeq ($(CONFIG_EC_STARLABS_NUVOTON),y)
32 EC_VARIANT_DIR := $(call strip_quotes, $(CONFIG_EC_VARIANT_DIR))
33 CPPFLAGS_common += -I$(src)/ec/starlabs/merlin/variants/$(EC_VARIANT_DIR)
35 all-y += nuvoton.c
37 endif