this change reduces the code duplication of the bootblock and the romstages for Nyans. BUG=none TEST=Built Nyan, Big, and Blaze. Ran faft on Blaze. BRANCH=none Original-Signed-off-by: dnojiri@chromium.org (Daisuke Nojiri) Original-Change-Id: Ieb9dac3b061a2cf46c63afb2f31eb67ab391ea1a Original-Reviewed-on: https://chromium-review.googlesource.com/214050 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Original-Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Original-Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Original-Tested-by: Daisuke Nojiri <dnojiri@chromium.org> (cherry picked from commit f3413d39458f03895fe4963a41285f71d81bcf5f) Signed-off-by: Aaron Durbin <adurbin@chromium.org> Change-Id: I912f63b12321aa26a7add302fc8a6c4e607330ef Reviewed-on: http://review.coreboot.org/8880 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
##
|
|
## This file is part of the coreboot project.
|
|
##
|
|
## Copyright 2014 Google Inc.
|
|
##
|
|
## This program is free software; you can redistribute it and/or modify
|
|
## it under the terms of the GNU General Public License as published by
|
|
## the Free Software Foundation; version 2 of the License.
|
|
##
|
|
## This program is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
## GNU General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU General Public License
|
|
## along with this program; if not, write to the Free Software
|
|
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
##
|
|
|
|
# Add a handler for BCT config files
|
|
$(call add-special-class,bct-cfg)
|
|
bct-cfg-handler= $(eval $(obj)/generated/bct.cfg: $(1)$(2))
|
|
|
|
$(obj)/generated/bct.cfg:
|
|
@printf " CAT $(subst $(obj)/,,$(@))\n"
|
|
cat $^ > $@
|
|
|
|
subdirs-y += bct
|
|
|
|
bootblock-y += boardid.c
|
|
bootblock-y += bootblock.c
|
|
bootblock-y += pmic.c
|
|
bootblock-y += reset.c
|
|
|
|
romstage-y += reset.c
|
|
romstage-y += romstage.c
|
|
romstage-y += sdram_configs.c
|
|
romstage-$(CONFIG_CHROMEOS) += chromeos.c
|
|
romstage-y += early_configs.c
|
|
|
|
ramstage-y += boardid.c
|
|
ramstage-y += mainboard.c
|
|
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
|