blob: d894dec4a714205dd544b3c7ca419c58ce9dac2d [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
Arthur Heymans47dd96d2018-02-07 13:01:43 +010019img/coreinfo-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
Martin Roth4351ace2016-02-16 19:40:47 -070020
Iru Cai736aa742016-04-15 15:48:14 +080021cbfs-files-$(CONFIG_NVRAMCUI_SECONDARY_PAYLOAD) += img/nvramcui
22img/nvramcui-file := payloads/nvramcui/nvramcui.elf
23img/nvramcui-type := payload
Arthur Heymans47dd96d2018-02-07 13:01:43 +010024img/nvramcui-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
Iru Cai736aa742016-04-15 15:48:14 +080025
Martin Rothe68a4382016-03-16 10:45:35 -060026PAYLOADS_LIST=\
27payloads/coreinfo \
Iru Cai736aa742016-04-15 15:48:14 +080028payloads/nvramcui \
Martin Rothe68a4382016-03-16 10:45:35 -060029payloads/libpayload \
30payloads/external/depthcharge \
31payloads/external/SeaBIOS \
32payloads/external/U-Boot \
Martin Roth888a98b2016-03-13 13:00:43 -060033payloads/external/Memtest86Plus \
Antonello Dettori4f7d3292016-05-27 23:44:47 +020034payloads/external/iPXE \
Martin Roth4769cc32016-06-02 16:42:29 -060035payloads/external/tint \
Nico Huber40b2ae32017-08-14 02:01:22 +020036payloads/external/tianocore \
37payloads/external/GRUB2 \
Martin Rothe68a4382016-03-16 10:45:35 -060038
Martin Roth4351ace2016-02-16 19:40:47 -070039payloads/coreinfo/build/coreinfo.elf coreinfo:
40 $(MAKE) -C payloads/coreinfo defaultbuild
Martin Roth67975572016-03-07 16:38:52 -070041
Martin Roth3383a252016-04-23 17:12:28 -060042payloads/nvramcui/nvramcui.elf nvramcui:
Iru Cai736aa742016-04-15 15:48:14 +080043 $(MAKE) -C payloads/nvramcui
44
Martin Roth67975572016-03-07 16:38:52 -070045clean-payloads:
Martin Rothe68a4382016-03-16 10:45:35 -060046 $(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) clean; )
Martin Roth67975572016-03-07 16:38:52 -070047
48distclean-payloads:
Martin Rothe68a4382016-03-16 10:45:35 -060049 $(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) distclean; )
Martin Roth67975572016-03-07 16:38:52 -070050
Martin Rothae269c02016-03-16 12:42:05 -060051print-repo-info-payloads:
52 -$(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) print-repo-info 2>/dev/null; )
53
Martin Roth3383a252016-04-23 17:12:28 -060054.PHONY: clean-payloads distclean-payloads print-repo-info-payloads nvramcui coreinfo