blob: 5f22e132e2078317246ebfc22058b2728276e45a [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Iru Cai44d399c2017-03-26 10:25:00 +08002
Iru Cai27dc7612020-09-16 21:10:58 +08003ifeq ($(CONFIG_EC_HP_KBC1126_ECFW_IN_CBFS),y)
Bill XIEf0215b42021-03-20 21:06:11 +08004
5bootblock-y += ecfw_ptr.c
Iru Cai44d399c2017-03-26 10:25:00 +08006
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
Martin Roth372503f2023-12-08 00:43:23 -070020show_notices::
Iru Cai44d399c2017-03-26 10:25:00 +080021ifeq ($(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
Iru Cai44d399c2017-03-26 10:25:00 +080031endif
Iru Cai27dc7612020-09-16 21:10:58 +080032
33ramstage-$(CONFIG_EC_HP_KBC1126) += ec.c
34bootblock-$(CONFIG_EC_HP_KBC1126) += early_init.c
35romstage-$(CONFIG_EC_HP_KBC1126) += early_init.c