Jon Murphy | a859057 | 2023-02-23 13:42:52 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | bootblock-y += bootblock.c |
| 4 | |
| 5 | romstage-y += port_descriptors.c |
| 6 | |
Jon Murphy | a456458 | 2023-03-29 15:38:19 -0600 | [diff] [blame] | 7 | ramstage-y += ec.c |
Jon Murphy | a859057 | 2023-02-23 13:42:52 -0700 | [diff] [blame] | 8 | ramstage-y += mainboard.c |
| 9 | ramstage-y += port_descriptors.c |
Jon Murphy | 4c4e9fc | 2023-03-29 15:28:25 -0600 | [diff] [blame] | 10 | ramstage-$(CONFIG_CHROMEOS) += chromeos.c |
Jon Murphy | a859057 | 2023-02-23 13:42:52 -0700 | [diff] [blame] | 11 | |
Karthikeyan Ramasubramanian | 5b5ee58 | 2023-06-01 15:33:50 -0600 | [diff] [blame] | 12 | verstage-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += verstage.c |
| 13 | |
Jon Murphy | a859057 | 2023-02-23 13:42:52 -0700 | [diff] [blame] | 14 | subdirs-y += variants/baseboard |
Jon Murphy | 3f34879 | 2023-03-29 15:36:01 -0600 | [diff] [blame] | 15 | subdirs-y += variants/$(VARIANT_DIR) |
Jon Murphy | a859057 | 2023-02-23 13:42:52 -0700 | [diff] [blame] | 16 | |
| 17 | CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include |
Jon Murphy | 3f34879 | 2023-03-29 15:36:01 -0600 | [diff] [blame] | 18 | CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include |
Karthikeyan Ramasubramanian | 8d3ca33 | 2023-04-25 16:52:54 -0600 | [diff] [blame] | 19 | |
| 20 | APCB_NAME=APCB_PHX_D5 |
| 21 | |
| 22 | ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/$(APCB_NAME).bin),) |
| 23 | $(info APCB sources present.) |
| 24 | |
Martin Roth | dd4fa8e | 2023-05-11 15:00:40 -0600 | [diff] [blame] | 25 | APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/$(APCB_NAME).bin |
Karthikeyan Ramasubramanian | 8d3ca33 | 2023-04-25 16:52:54 -0600 | [diff] [blame] | 26 | |
Martin Roth | dd4fa8e | 2023-05-11 15:00:40 -0600 | [diff] [blame] | 27 | # The SPD is currently built directly into the APCB. |
| 28 | # Add the below section back in after the apcbtool is updated to handle the |
| 29 | # Phoenix APCB SPD configuration. |
Karthikeyan Ramasubramanian | 8d3ca33 | 2023-04-25 16:52:54 -0600 | [diff] [blame] | 30 | |
Rob Barnes | d6b58d5 | 2023-06-14 11:19:53 -0600 | [diff] [blame] | 31 | ifneq ($(wildcard $(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/memory/Makefile.inc),) |
| 32 | |
| 33 | LIB_SPD_DEPS = $(SPD_SOURCES) |
| 34 | |
| 35 | APCB_SOURCES = $(obj)/$(APCB_NAME).gen |
| 36 | |
| 37 | $(obj)/$(APCB_NAME).gen: $(SPD_SOURCES) \ |
| 38 | $(APCB_V3A_EDIT_TOOL) \ |
| 39 | $(MAINBOARD_BLOBS_DIR)/$(APCB_NAME).bin |
| 40 | $(APCB_V3A_EDIT_TOOL) $(MAINBOARD_BLOBS_DIR)/$(APCB_NAME).bin \ |
| 41 | $(obj)/$(APCB_NAME).gen \ |
| 42 | --spd_sources $(SPD_SOURCES) |
| 43 | else |
| 44 | $(info SPD sources not found. Skipping APCB.) |
Martin Roth | 372503f | 2023-12-08 00:43:23 -0700 | [diff] [blame^] | 45 | show_notices:: die_no_apcb |
Rob Barnes | d6b58d5 | 2023-06-14 11:19:53 -0600 | [diff] [blame] | 46 | endif |
Karthikeyan Ramasubramanian | 8d3ca33 | 2023-04-25 16:52:54 -0600 | [diff] [blame] | 47 | |
Karthikeyan Ramasubramanian | 8d3ca33 | 2023-04-25 16:52:54 -0600 | [diff] [blame] | 48 | else |
| 49 | $(info APCB sources not found. Skipping APCB.) |
Martin Roth | 372503f | 2023-12-08 00:43:23 -0700 | [diff] [blame^] | 50 | show_notices:: warn_no_apcb |
Karthikeyan Ramasubramanian | 8d3ca33 | 2023-04-25 16:52:54 -0600 | [diff] [blame] | 51 | endif |