Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2010 Google Inc. |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
| 15 | ## You should have received a copy of the GNU General Public License |
| 16 | ## along with this program; if not, write to the Free Software |
| 17 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | ## |
| 19 | |
| 20 | # Run an intermediate step when producing coreboot.rom |
| 21 | # that adds additional components to the final firmware |
| 22 | # image outside of CBFS |
| 23 | # FIXME, uncomment as soon as we have ME firmware in the blobs repo |
| 24 | # INTERMEDIATE:=lynxpoint_add_me |
| 25 | |
| 26 | ramstage-y += pch.c |
| 27 | ramstage-y += azalia.c |
| 28 | ramstage-y += lpc.c |
| 29 | ramstage-y += pci.c |
| 30 | ramstage-y += pcie.c |
| 31 | ramstage-y += sata.c |
| 32 | ramstage-y += usb_ehci.c |
| 33 | ramstage-y += me_9.x.c |
| 34 | ramstage-y += smbus.c |
| 35 | |
Duncan Laurie | 8584b22 | 2013-02-15 13:52:28 -0800 | [diff] [blame] | 36 | ramstage-y += rcba.c |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 37 | ramstage-y += me_status.c |
| 38 | ramstage-y += reset.c |
| 39 | ramstage-y += watchdog.c |
| 40 | ramstage-y += acpi.c |
Aaron Durbin | 94998c4 | 2013-01-22 13:54:12 -0600 | [diff] [blame] | 41 | ramstage-$(CONFIG_ALT_CBFS_LOAD_PAYLOAD) += spi_loading.c |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 42 | |
| 43 | ramstage-$(CONFIG_ELOG) += elog.c |
| 44 | ramstage-y += spi.c |
| 45 | smm-$(CONFIG_SPI_FLASH_SMM) += spi.c |
| 46 | |
Duncan Laurie | 55cdf55 | 2013-03-08 16:01:44 -0800 | [diff] [blame^] | 47 | ramstage-$(CONFIG_HAVE_SMI_HANDLER) += smi.c pmutil.c |
Duncan Laurie | 5cc51c0 | 2013-03-07 14:06:43 -0800 | [diff] [blame] | 48 | smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c me_9.x.c finalize.c pch.c |
Duncan Laurie | 55cdf55 | 2013-03-08 16:01:44 -0800 | [diff] [blame^] | 49 | smm-$(CONFIG_HAVE_SMI_HANDLER) += pmutil.c |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 50 | |
Aaron Durbin | 239c2e8 | 2012-12-19 11:31:17 -0600 | [diff] [blame] | 51 | romstage-y += early_usb.c early_smbus.c early_me.c me_status.c early_pch.c |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 52 | romstage-$(CONFIG_USBDEBUG) += usb_debug.c |
Duncan Laurie | 8584b22 | 2013-02-15 13:52:28 -0800 | [diff] [blame] | 53 | romstage-y += reset.c early_spi.c rcba.c |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 54 | |
Duncan Laurie | 045f153 | 2012-12-17 11:29:10 -0800 | [diff] [blame] | 55 | ifeq ($(CONFIG_INTEL_LYNXPOINT_LP),y) |
| 56 | romstage-y += lp_gpio.c |
| 57 | ramstage-y += lp_gpio.c |
| 58 | else |
| 59 | romstage-y += gpio.c |
| 60 | ramstage-y += gpio.c |
| 61 | endif |
| 62 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 63 | lynxpoint_add_me: $(obj)/coreboot.pre $(IFDTOOL) |
| 64 | printf " DD Adding Intel Firmware Descriptor\n" |
| 65 | dd if=3rdparty/mainboard/$(MAINBOARDDIR)/descriptor.bin \ |
| 66 | of=$(obj)/coreboot.pre conv=notrunc >/dev/null 2>&1 |
| 67 | printf " IFDTOOL me.bin -> coreboot.pre\n" |
| 68 | $(objutil)/ifdtool/ifdtool \ |
| 69 | -i ME:3rdparty/mainboard/$(MAINBOARDDIR)/me.bin \ |
| 70 | $(obj)/coreboot.pre |
| 71 | mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre |
| 72 | ifeq ($(CONFIG_LOCK_MANAGEMENT_ENGINE),y) |
| 73 | printf " IFDTOOL Locking Management Engine\n" |
| 74 | $(objutil)/ifdtool/ifdtool -l $(obj)/coreboot.pre |
| 75 | mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre |
| 76 | else |
| 77 | printf " IFDTOOL Unlocking Management Engine\n" |
| 78 | $(objutil)/ifdtool/ifdtool -u $(obj)/coreboot.pre |
| 79 | mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre |
| 80 | endif |
| 81 | |
| 82 | PHONY += lynxpoint_add_me |