1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifeq ($(CONFIG_EC_STARLABS_ITE
),y
)
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
)
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
18 show_notices
:: 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"
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
)