Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2014 Imagination Technologies |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or |
| 7 | # modify it under the terms of the GNU General Public License as |
| 8 | # published by the Free Software Foundation; version 2 of |
| 9 | # the License. |
| 10 | # |
| 11 | # This program is distributed in the hope that it will be useful, |
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License |
| 17 | # along with this program; if not, write to the Free Software |
| 18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 19 | # MA 02110-1301 USA |
| 20 | # |
| 21 | |
Vadim Bendebury | 2d510d0 | 2014-09-29 12:43:40 -0700 | [diff] [blame] | 22 | # We enable CBFS_SPI_WRAPPER for Pistachio targets. |
Ionela Voinescu | b3f666b | 2015-01-18 22:37:11 +0000 | [diff] [blame] | 23 | bootblock-y += clocks.c |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 24 | bootblock-y += spi.c |
| 25 | romstage-y += spi.c |
| 26 | ramstage-y += spi.c |
| 27 | |
Patrick Georgi | 146d05d | 2015-03-30 13:08:18 +0200 | [diff] [blame] | 28 | ifeq ($(CONFIG_DRIVERS_UART),y) |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 29 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c |
| 30 | romstage-y += uart.c |
| 31 | ramstage-y += uart.c |
| 32 | endif |
| 33 | |
Vadim Bendebury | f16b082 | 2014-09-29 13:08:24 -0700 | [diff] [blame] | 34 | bootblock-y += monotonic_timer.c |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 35 | |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 36 | ramstage-y += cbmem.c |
Vadim Bendebury | f16b082 | 2014-09-29 13:08:24 -0700 | [diff] [blame] | 37 | ramstage-y += monotonic_timer.c |
Vadim Bendebury | f3bc026 | 2014-12-01 18:34:37 -0800 | [diff] [blame] | 38 | ramstage-y += soc.c |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 39 | |
| 40 | romstage-y += cbmem.c |
Ionela Voinescu | d6aaca9 | 2015-01-19 01:03:44 +0000 | [diff] [blame^] | 41 | romstage-y += ddr2_init.c |
Vadim Bendebury | c7b3f72 | 2014-09-02 13:20:47 -0700 | [diff] [blame] | 42 | romstage-y += romstage.c |
Ionela Voinescu | 49aad6b | 2014-09-09 20:18:55 +0100 | [diff] [blame] | 43 | romstage-y += monotonic_timer.c |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 44 | |
Julius Werner | 0812568 | 2014-10-20 13:22:00 -0700 | [diff] [blame] | 45 | CPPFLAGS_common += -Isrc/soc/imgtec/pistachio/include/ |
| 46 | |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 47 | # Generate the actual coreboot bootblock code |
| 48 | $(objcbfs)/bootblock.raw: $(objcbfs)/bootblock.elf |
| 49 | @printf " OBJCOPY $(subst $(obj)/,,$(@))\n" |
| 50 | $(OBJCOPY_bootblock) -O binary $< $@.tmp |
| 51 | @mv $@.tmp $@ |
| 52 | |
| 53 | # Create a complete bootblock which will start up the system |
| 54 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw $(BIMGTOOL) |
| 55 | @printf " BIMGTOOL $(subst $(obj)/,,$(@))\n" |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 56 | $(BIMGTOOL) $< $@ $(call loadaddr,bootblock) |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 57 | |