2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
7 ifeq ($(CONFIG_EC_HP_KBC1126),y)
8 KBC1126_EC_INSERT:=$(top)/util/kbc1126/kbc1126_ec_insert
9 INTERMEDIATE+=kbc1126_ec_insert
11 ifeq ($(CONFIG_KBC1126_FIRMWARE),y)
12 cbfs-files-y += ecfw1.bin
13 cbfs-files-y += ecfw2.bin
15 ecfw1.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW1))
16 ecfw1.bin-position := $(CONFIG_KBC1126_FW1_OFFSET)
19 ecfw2.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW2))
20 ecfw2.bin-position := $(CONFIG_KBC1126_FW2_OFFSET)
24 kbc1126_ec_insert: $(obj)/coreboot.pre
25 ifeq ($(CONFIG_KBC1126_FIRMWARE),y)
26 printf " Building kbc1126_ec_insert.\n"
27 $(MAKE) -C util/kbc1126
28 printf " KBC1126 Inserting KBC1126 firmware blobs.\n"
29 $(KBC1126_EC_INSERT) $(obj)/coreboot.pre \
30 $(CONFIG_KBC1126_FW1_OFFSET) $(CONFIG_KBC1126_FW2_OFFSET)
33 PHONY+=kbc1126_ec_insert
36 ifeq ($(CONFIG_KBC1126_FIRMWARE),)
37 printf "\n** WARNING **\n"
38 printf "You haven't added the firmware blobs for KBC1126 EC.\n"
39 printf "You may be unable to power on your laptop without these blobs.\n"
40 printf "Please select the following option to add them:\n\n"
41 printf " Chipset --->\n"
42 printf " [*] Add firmware images for KBC1126 EC\n\n"
43 printf "You can read util/kbc1126/README.md for details.\n\n"
47 bootblock-y += early_init.c
48 romstage-y += early_init.c