Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | bootblock-y += bootblock.c |
Felix Held | c077f4a | 2020-06-24 20:43:22 +0200 | [diff] [blame] | 4 | bootblock-y += variants/$(VARIANT_DIR)/early_gpio.c |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 5 | |
Felix Held | c077f4a | 2020-06-24 20:43:22 +0200 | [diff] [blame] | 6 | ramstage-y += variants/$(VARIANT_DIR)/gpio.c |
| 7 | ramstage-y += variants/$(VARIANT_DIR)/port_descriptors.c |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 8 | |
Felix Held | e2cb869 | 2020-11-23 23:01:45 +0100 | [diff] [blame] | 9 | ifneq ($(CONFIG_MANDOLIN_LPC),y) |
Felix Held | 346f391 | 2020-06-27 01:41:21 +0200 | [diff] [blame] | 10 | ramstage-y += emmc_gpio.c |
| 11 | endif |
| 12 | |
Felix Held | 407b866 | 2020-06-23 01:14:46 +0200 | [diff] [blame] | 13 | ifeq ($(CONFIG_BOARD_AMD_MANDOLIN),y) |
Rob Barnes | b2545cc | 2020-09-09 13:19:09 -0600 | [diff] [blame] | 14 | APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_mandolin.bin |
Felix Held | 407b866 | 2020-06-23 01:14:46 +0200 | [diff] [blame] | 15 | else # CONFIG_BOARD_AMD_CEREME |
| 16 | APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_cereme.bin |
| 17 | endif |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 18 | |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 19 | ifeq ($(CONFIG_MANDOLIN_HAVE_MCHP_FW),y) |
| 20 | |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 21 | $(call add_intermediate, add_mchp_fw) |
Arthur Heymans | 8ceef40 | 2021-07-06 16:20:09 +0200 | [diff] [blame] | 22 | $(CBFSTOOL) $< write -r EC -f $(CONFIG_MANDOLIN_MCHP_FW_FILE) --fill-upward |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 23 | |
| 24 | else |
Martin Roth | 372503f | 2023-12-08 00:43:23 -0700 | [diff] [blame] | 25 | show_notices:: warn_no_mchp |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 26 | endif # CONFIG_MANDOLIN_HAVE_MCHP_FW |
| 27 | |
| 28 | PHONY+=warn_no_mchp |
| 29 | warn_no_mchp: |
| 30 | printf "\n\t** WARNING **\n" |
Paul Menzel | a5e94fe | 2021-03-26 08:26:16 +0100 | [diff] [blame] | 31 | printf "coreboot has been built without the Microchip EC.\n" |
Felix Held | e6315f7 | 2020-04-04 05:27:05 +0200 | [diff] [blame] | 32 | printf "Do not flash this image. Your Mandolin's power button\n" |
| 33 | printf "will not respond when you press it.\n\n" |