blob: eb70157b9260fc3781a1a987f5ea3327bd4e1357 [file] [log] [blame]
Gabe Black5c8d3d22014-01-17 22:11:35 -08001##
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##
Gabe Black5c8d3d22014-01-17 22:11:35 -080015
16# Add a handler for BCT config files
17$(call add-special-class,bct-cfg)
18bct-cfg-handler= $(eval $(obj)/generated/bct.cfg: $(1)$(2))
19
20$(obj)/generated/bct.cfg:
21 @printf " CAT $(subst $(obj)/,,$(@))\n"
22 cat $^ > $@
23
24subdirs-y += bct
25
Gabe Black5c8d3d22014-01-17 22:11:35 -080026bootblock-y += bootblock.c
27bootblock-y += pmic.c
Tom Warrenbb932c52014-04-30 14:51:38 -070028bootblock-y += reset.c
Gabe Black5c8d3d22014-01-17 22:11:35 -080029
Gabe Blackc8522062014-05-06 15:44:14 -070030romstage-y += reset.c
Gabe Black5c8d3d22014-01-17 22:11:35 -080031romstage-y += romstage.c
Tom Warren64982c502014-01-23 13:37:50 -070032romstage-y += sdram_configs.c
Gabe Black5c8d3d22014-01-17 22:11:35 -080033romstage-$(CONFIG_CHROMEOS) += chromeos.c
Daisuke Nojiri1b05d882014-08-27 11:48:03 -070034romstage-y += early_configs.c
Gabe Black5c8d3d22014-01-17 22:11:35 -080035
Daisuke Nojiri512bfbc2014-08-15 17:07:39 -070036ramstage-y += reset.c
Vadim Bendebury5e1a2d32014-07-28 16:08:34 -070037ramstage-y += boardid.c
Gabe Black5c8d3d22014-01-17 22:11:35 -080038ramstage-y += mainboard.c
39ramstage-$(CONFIG_CHROMEOS) += chromeos.c
Julius Wernerec5e5e02014-08-20 15:29:56 -070040
Stefan Reinauer417f16b2015-07-01 16:34:07 -070041verstage-y += reset.c
42verstage-$(CONFIG_CHROMEOS) += chromeos.c
43verstage-y += early_configs.c
44
Julius Wernerec5e5e02014-08-20 15:29:56 -070045bootblock-y += memlayout.ld
Stefan Reinauer417f16b2015-07-01 16:34:07 -070046verstage-y += memlayout.ld
Julius Wernerec5e5e02014-08-20 15:29:56 -070047romstage-y += memlayout.ld
48ramstage-y += memlayout.ld