Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | bootblock-y += bootblock.c |
Karthikeyan Ramasubramanian | 9eaaf0d | 2021-10-05 14:20:14 -0600 | [diff] [blame] | 4 | bootblock-$(CONFIG_CHROMEOS) += chromeos.c |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 5 | |
Matt Papageorge | ea0f225 | 2021-03-30 11:41:22 -0500 | [diff] [blame] | 6 | romstage-y += port_descriptors.c |
Martin Roth | 3360862 | 2021-05-20 20:41:18 -0600 | [diff] [blame] | 7 | romstage-y += romstage.c |
Matt Papageorge | ea0f225 | 2021-03-30 11:41:22 -0500 | [diff] [blame] | 8 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 9 | ramstage-y += mainboard.c |
Mathew King | ad83023 | 2021-02-23 13:08:15 -0700 | [diff] [blame] | 10 | ramstage-y += ec.c |
Robert Zieba | e2bde83 | 2022-01-19 14:15:24 -0700 | [diff] [blame] | 11 | ramstage-y += port_descriptors.c |
Mathew King | 44948a7 | 2021-02-10 16:05:38 -0700 | [diff] [blame] | 12 | ramstage-$(CONFIG_CHROMEOS) += chromeos.c |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 13 | |
Kyösti Mälkki | 3818604 | 2021-11-04 06:36:25 +0200 | [diff] [blame] | 14 | all-y += spi_speeds.c |
| 15 | |
Raul E Rangel | b52b701 | 2022-03-10 10:18:57 -0700 | [diff] [blame] | 16 | verstage-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += verstage.c |
Hsuan Ting Chen | 3a30cf9 | 2021-10-08 16:33:46 +0800 | [diff] [blame] | 17 | verstage-$(CONFIG_CHROMEOS) += chromeos.c |
Mathew King | 7a8108d | 2021-03-11 08:24:40 -0700 | [diff] [blame] | 18 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 19 | subdirs-y += variants/baseboard |
Mathew King | 86a2324 | 2021-02-17 09:57:36 -0700 | [diff] [blame] | 20 | subdirs-y += variants/$(VARIANT_DIR) |
| 21 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 22 | CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include |
Mathew King | 86a2324 | 2021-02-17 09:57:36 -0700 | [diff] [blame] | 23 | CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include |
Martin Roth | de89e95 | 2021-02-22 21:43:19 -0700 | [diff] [blame] | 24 | |
Matt DeVillier | eb62c4b | 2023-12-15 15:58:32 -0600 | [diff] [blame] | 25 | APCB_NAME=data.apcb |
| 26 | APCB_PATH=$(src)/mainboard/$(MAINBOARDDIR) |
Martin Roth | 3d24275 | 2022-09-09 12:17:10 -0600 | [diff] [blame] | 27 | |
Reka Norman | fe9fc6f | 2021-09-17 12:44:05 +1000 | [diff] [blame] | 28 | LIB_SPD_DEPS = $(SPD_SOURCES) |
Rob Barnes | 6a3ecc5 | 2021-12-23 08:03:14 -0700 | [diff] [blame] | 29 | |
Martin Roth | 3d24275 | 2022-09-09 12:17:10 -0600 | [diff] [blame] | 30 | APCB_SOURCES = $(obj)/$(APCB_NAME).gen |
| 31 | APCB_SOURCES_RECOVERY = $(obj)/$(APCB_NAME).gen |
Rob Barnes | 6a3ecc5 | 2021-12-23 08:03:14 -0700 | [diff] [blame] | 32 | |
Martin Roth | 3d24275 | 2022-09-09 12:17:10 -0600 | [diff] [blame] | 33 | $(obj)/$(APCB_NAME).gen: $(SPD_SOURCES) \ |
Rob Barnes | 6a3ecc5 | 2021-12-23 08:03:14 -0700 | [diff] [blame] | 34 | $(APCB_V3_EDIT_TOOL) \ |
Matt DeVillier | eb62c4b | 2023-12-15 15:58:32 -0600 | [diff] [blame] | 35 | $(APCB_PATH)/$(APCB_NAME) |
| 36 | $(APCB_V3_EDIT_TOOL) $(APCB_PATH)/$(APCB_NAME) \ |
Martin Roth | 3d24275 | 2022-09-09 12:17:10 -0600 | [diff] [blame] | 37 | $(obj)/$(APCB_NAME).gen \ |
Rob Barnes | 6a3ecc5 | 2021-12-23 08:03:14 -0700 | [diff] [blame] | 38 | --spd_sources $(SPD_SOURCES) |