blob: c969c9e2d35bdb85a0b10ca9d8a0d6ad343fd706 [file] [log] [blame]
Martin Roth4351ace2016-02-16 19:40:47 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2016 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
16cbfs-files-$(CONFIG_COREINFO_SECONDARY_PAYLOAD) += img/coreinfo
17img/coreinfo-file := payloads/coreinfo/build/coreinfo.elf
18img/coreinfo-type := payload
19
Martin Rothe68a4382016-03-16 10:45:35 -060020PAYLOADS_LIST=\
21payloads/coreinfo \
22payloads/libpayload \
23payloads/external/depthcharge \
24payloads/external/SeaBIOS \
25payloads/external/U-Boot \
26payloads/external/Memtest86Plus
27
Martin Roth4351ace2016-02-16 19:40:47 -070028payloads/coreinfo/build/coreinfo.elf coreinfo:
29 $(MAKE) -C payloads/coreinfo defaultbuild
Martin Roth67975572016-03-07 16:38:52 -070030
31clean-payloads:
Martin Rothe68a4382016-03-16 10:45:35 -060032 $(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) clean; )
Martin Roth67975572016-03-07 16:38:52 -070033
34distclean-payloads:
Martin Rothe68a4382016-03-16 10:45:35 -060035 $(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) distclean; )
Martin Roth67975572016-03-07 16:38:52 -070036
Martin Rothae269c02016-03-16 12:42:05 -060037print-repo-info-payloads:
38 -$(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) print-repo-info 2>/dev/null; )
39
40.PHONY: clean-payloads distclean-payloads print-repo-info-payloads