Include board ID calculations only when necessary
[coreboot.git] / src / mainboard / google / rush / Makefile.inc
blobddf6660a667c8105add062525f37ba3e1ee2c783
1 ##
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.
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
20 # Add a handler for BCT config files
21 $(call add-special-class,bct-cfg)
22 bct-cfg-handler= $(eval $(obj)/generated/bct.cfg: $(1)$(2))
24 $(obj)/generated/bct.cfg:
25         @printf "    CAT        $(subst $(obj)/,,$(@))\n"
26         cat $^ > $@
28 subdirs-y += bct
30 bootblock-y += bootblock.c
31 bootblock-y += pmic.c
32 bootblock-y += reset.c
34 romstage-y += reset.c
35 romstage-y += romstage.c
36 romstage-y += sdram_configs.c
37 romstage-$(CONFIG_CHROMEOS) += chromeos.c
38 romstage-y += ec_dummy.c
40 ramstage-y += boardid.c
41 ramstage-y += mainboard.c
42 ramstage-$(CONFIG_CHROMEOS) += chromeos.c
43 ramstage-y += ec_dummy.c