blob: 717cb3b503ff0420d4b3b933d69c5aa46be3ded0 [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##
Daisuke Nojiri3df01262014-10-08 11:38:52 -070015
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070016ifeq ($(CONFIG_SOC_MARVELL_BG4CD),y)
17
Aaron Durbin1124cec2015-04-22 10:41:42 -050018bootblock-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += bootblock_asm.S
19bootblock-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += bootblock.c
Daisuke Nojiri599c32d2014-12-03 12:09:58 -080020
Daisuke Nojiri3df01262014-10-08 11:38:52 -070021bootblock-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070022bootblock-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070023bootblock-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070024bootblock-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070025
Daisuke Nojiri3df01262014-10-08 11:38:52 -070026verstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070027verstage-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070028verstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070029
Daisuke Nojiri55cb84b2014-12-29 16:04:23 -080030romstage-y += romstage.S
Daisuke Nojiri3df01262014-10-08 11:38:52 -070031romstage-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070032romstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070033romstage-y += monotonic_timer.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070034romstage-y += sdram.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070035romstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070036
37ramstage-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070038ramstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070039ramstage-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070040ramstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070041
Julius Werner7d186632014-10-20 14:21:22 -070042CPPFLAGS_common += -Isrc/soc/marvell/bg4cd/include/
43
Daisuke Nojiri3df01262014-10-08 11:38:52 -070044$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
45 @printf "Generating: $(subst $(obj)/,,$(@))\n"
46 @mkdir -p $(dir $@)
47 @mv $< $@
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070048
49endif