xref: /aosp_15_r20/external/coreboot/src/ec/hp/kbc1126/Makefile.mk (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1## SPDX-License-Identifier: GPL-2.0-only
2
3ifeq ($(CONFIG_EC_HP_KBC1126_ECFW_IN_CBFS),y)
4
5bootblock-y += ecfw_ptr.c
6
7ifeq ($(CONFIG_KBC1126_FIRMWARE),y)
8cbfs-files-y += ecfw1.bin
9cbfs-files-y += ecfw2.bin
10
11ecfw1.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW1))
12ecfw1.bin-position := $(CONFIG_KBC1126_FW1_OFFSET)
13ecfw1.bin-type := raw
14
15ecfw2.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW2))
16ecfw2.bin-position := $(CONFIG_KBC1126_FW2_OFFSET)
17ecfw2.bin-type := raw
18endif
19
20show_notices::
21ifeq ($(CONFIG_KBC1126_FIRMWARE),)
22	printf "\n** WARNING **\n"
23	printf "You haven't added the firmware blobs for KBC1126 EC.\n"
24	printf "You may be unable to power on your laptop without these blobs.\n"
25	printf "Please select the following option to add them:\n\n"
26	printf "  Chipset --->\n"
27	printf "    [*] Add firmware images for KBC1126 EC\n\n"
28	printf "You can read util/kbc1126/README.md for details.\n\n"
29endif
30
31endif
32
33ramstage-$(CONFIG_EC_HP_KBC1126) += ec.c
34bootblock-$(CONFIG_EC_HP_KBC1126) += early_init.c
35romstage-$(CONFIG_EC_HP_KBC1126) += early_init.c
36