3 ## Copyright (C) 2016 Google Inc.
5 ## SPDX-License-Identifier: GPL-2.0-only
7 cbfs-files-$(CONFIG_COREINFO_SECONDARY_PAYLOAD) += img/coreinfo
8 img/coreinfo-file := payloads/coreinfo/build/coreinfo.elf
9 img/coreinfo-type := payload
10 img/coreinfo-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
12 cbfs-files-$(CONFIG_NVRAMCUI_SECONDARY_PAYLOAD) += img/nvramcui
13 img/nvramcui-file := payloads/nvramcui/build/nvramcui.elf
14 img/nvramcui-type := payload
15 img/nvramcui-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
21 payloads/external/depthcharge \
22 payloads/external/SeaBIOS \
23 payloads/external/U-Boot \
24 payloads/external/Memtest86Plus \
25 payloads/external/iPXE \
26 payloads/external/tint \
27 payloads/external/edk2 \
28 payloads/external/GRUB2 \
29 payloads/external/LinuxBoot \
30 payloads/external/skiboot \
31 payloads/external/coreDOOM \
35 payloads/coreinfo/build/coreinfo.elf coreinfo: export CCACHE := $(CCACHE)
36 payloads/coreinfo/build/coreinfo.elf coreinfo: force-payload
37 $(MAKE) -C payloads/coreinfo defaultbuild
39 payloads/nvramcui/build/nvramcui.elf nvramcui: export CCACHE := $(CCACHE)
40 payloads/nvramcui/build/nvramcui.elf nvramcui: force-payload
41 $(MAKE) -C payloads/nvramcui
44 $(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) clean; )
47 $(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) distclean; )
49 print-repo-info-payloads:
50 -$(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) print-repo-info 2>/dev/null; )
52 ifeq ($(CONFIG_PAYLOAD_NONE),y)
53 files_added:: warn_no_payload
57 printf "\n\t** WARNING **\n"
58 printf "coreboot has been built without a payload. Writing\n"
59 printf "a coreboot image without a payload to your board's\n"
60 printf "flash chip will result in a non-booting system. You\n"
61 printf "can use cbfstool to add a payload to the image.\n\n"
63 .PHONY: force-payload coreinfo nvramcui
64 .PHONY: clean-payloads distclean-payloads print-repo-info-payloads warn_no_payload