src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / ec / hp / kbc1126 / Makefile.inc
blobfbee1d72c8468b99d023eaed06098cc27b74b4be
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ##
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)
17 ecfw1.bin-type := raw
19 ecfw2.bin-file := $(call strip_quotes,$(CONFIG_KBC1126_FW2))
20 ecfw2.bin-position := $(CONFIG_KBC1126_FW2_OFFSET)
21 ecfw2.bin-type := raw
22 endif
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)
31 endif
33 PHONY+=kbc1126_ec_insert
35 build_complete::
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"
44 endif
46 ramstage-y += ec.c
47 bootblock-y += early_init.c
48 romstage-y += early_init.c
50 endif