blob: 18f9d8ddfecccc4983ac9c85b6a141d73642e409 [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
20bootblock-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070021bootblock-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070022bootblock-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070023bootblock-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070024
Daisuke Nojiri3df01262014-10-08 11:38:52 -070025verstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070026verstage-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070027verstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070028
29romstage-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070030romstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070031romstage-y += monotonic_timer.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070032romstage-y += sdram.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070033romstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070034
35ramstage-y += cbmem.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070036ramstage-y += i2c.c
Vadim Bendebury771819a2014-10-15 18:19:03 -070037ramstage-y += monotonic_timer.c
Vadim Bendeburyc8385dd2014-10-16 11:20:15 -070038ramstage-$(CONFIG_SPI_FLASH) += spi.c
Daisuke Nojiri3df01262014-10-08 11:38:52 -070039
Julius Werner7d186632014-10-20 14:21:22 -070040CPPFLAGS_common += -Isrc/soc/marvell/bg4cd/include/
41
Daisuke Nojiri3df01262014-10-08 11:38:52 -070042$(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf
43 cp $< $@
44
45$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
46 @printf "Generating: $(subst $(obj)/,,$(@))\n"
47 @mkdir -p $(dir $@)
48 @mv $< $@