Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Iru Cai | 44d399c | 2017-03-26 10:25:00 +0800 | [diff] [blame] | 2 | |
Iru Cai | 27dc761 | 2020-09-16 21:10:58 +0800 | [diff] [blame] | 3 | ifeq ($(CONFIG_EC_HP_KBC1126_ECFW_IN_CBFS),y) |
Bill XIE | f0215b4 | 2021-03-20 21:06:11 +0800 | [diff] [blame] | 4 | |
| 5 | bootblock-y += ecfw_ptr.c |
Iru Cai | 44d399c | 2017-03-26 10:25:00 +0800 | [diff] [blame] | 6 | |
| 7 | ifeq ($(CONFIG_KBC1126_FIRMWARE),y) |
| 8 | cbfs-files-y += ecfw1.bin |
| 9 | cbfs-files-y += ecfw2.bin |
| 10 | |
| 11 | ecfw1.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW1)) |
| 12 | ecfw1.bin-position := $(CONFIG_KBC1126_FW1_OFFSET) |
| 13 | ecfw1.bin-type := raw |
| 14 | |
| 15 | ecfw2.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW2)) |
| 16 | ecfw2.bin-position := $(CONFIG_KBC1126_FW2_OFFSET) |
| 17 | ecfw2.bin-type := raw |
| 18 | endif |
| 19 | |
Martin Roth | 372503f | 2023-12-08 00:43:23 -0700 | [diff] [blame^] | 20 | show_notices:: |
Iru Cai | 44d399c | 2017-03-26 10:25:00 +0800 | [diff] [blame] | 21 | ifeq ($(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" |
| 29 | endif |
| 30 | |
Iru Cai | 44d399c | 2017-03-26 10:25:00 +0800 | [diff] [blame] | 31 | endif |
Iru Cai | 27dc761 | 2020-09-16 21:10:58 +0800 | [diff] [blame] | 32 | |
| 33 | ramstage-$(CONFIG_EC_HP_KBC1126) += ec.c |
| 34 | bootblock-$(CONFIG_EC_HP_KBC1126) += early_init.c |
| 35 | romstage-$(CONFIG_EC_HP_KBC1126) += early_init.c |