blob: 4a58e6f8eb43320c5cf87e7dd2a655cbc11ab7c8 [file] [log] [blame]
Daisuke Nojiri3df01262014-10-08 11:38:52 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright 2014 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
Aaron Durbin1124cec2015-04-22 10:41:42 -050020bootblock-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += bootblock_asm.S
21bootblock-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += bootblock.c
Daisuke Nojiri599c32d2014-12-03 12:09:58 -080022
Daisuke Nojiri3df01262014-10-08 11:38:52 -070023bootblock-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070024bootblock-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070025bootblock-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070026bootblock-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070027
Daisuke Nojiri3df01262014-10-08 11:38:52 -070028verstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070029verstage-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070030verstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070031
Daisuke Nojiri55cb84b2014-12-29 16:04:23 -080032romstage-y += romstage.S
Daisuke Nojiri3df01262014-10-08 11:38:52 -070033romstage-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070034romstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070035romstage-y += monotonic_timer.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070036romstage-y += sdram.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070037romstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070038
39ramstage-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070040ramstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070041ramstage-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070042ramstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070043
Julius Werner7d186632014-10-20 14:21:22 -070044CPPFLAGS_common += -Isrc/soc/marvell/bg4cd/include/
45
Daisuke Nojiri3df01262014-10-08 11:38:52 -070046$(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf
47 cp $< $@
48
49$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
50 @printf "Generating: $(subst $(obj)/,,$(@))\n"
51 @mkdir -p $(dir $@)
52 @mv $< $@