2016-02-17 03:40:47 +01:00
|
|
|
##
|
|
|
|
##
|
|
|
|
## Copyright (C) 2016 Google Inc.
|
|
|
|
##
|
payloads: Replace GPL boilerplate with SPDX headers
Used commands:
perl -i -p0e 's|\/\*[\s*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-only */|' $(cat filelist)
perl -i -p0e 's|\/\*[\s*]*.*is[\s*]*free[\s*]*software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*either[\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License,[\s*]*or[\s*]*.at[\s*]*your[\s*]*option.*[\s*]*any[\s*]*later[\s*]*version.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-or-later */|' $(cat filelist)
perl -i -p0e 's|\/\*[\s*]*.*is[\s*#]*free[\s*#]*software[;:,][\s*#]*you[\s*#]*can[\s*#]*redistribute[\s*#]*it[\s*#]*and/or[\s*#]*modify[\s*#]*it[\s*#]*under[\s*#]*the[\s*#]*terms[\s*#]*of[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*as[\s*#]*published[\s*#]*by[\s*#]*the[\s*#]*Free[\s*#]*Software[\s*#]*Foundation[;:,][\s*#]*either[\s*#]*version[\s*#]*3[\s*#]*of[\s*#]*the[\s*#]*License[;:,][\s*#]*or[\s*#]*.at[\s*#]*your[\s*#]*option.*[\s*#]*any[\s*#]*later[\s*#]*version.[\s*#]*This[\s*#]*program[\s*#]*is[\s*#]*distributed[\s*#]*in[\s*#]*the[\s*#]*hope[\s*#]*that[\s*#]*it[\s*#]*will[\s*#]*be[\s*#]*useful[;:,][\s*#]*but[\s*#]*WITHOUT[\s*#]*ANY[\s*#]*WARRANTY[;:,][\s*#]*without[\s*#]*even[\s*#]*the[\s*#]*implied[\s*#]*warranty[\s*#]*of[\s*#]*MERCHANTABILITY[\s*#]*or[\s*#]*FITNESS[\s*#]*FOR[\s*#]*A[\s*#]*PARTICULAR[\s*#]*PURPOSE.[\s*#]*See[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*for[\s*#]*more[\s*#]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-3.0-or-later */|' $(cat filelist)
perl -i -p0e 's|(\#\#*)[\w]*.*is free software[:;][\#\s]*you[\#\s]*can[\#\s]*redistribute[\#\s]*it[\#\s]*and\/or[\#\s]*modify[\#\s]*it[\s\#]*under[\s \#]*the[\s\#]*terms[\s\#]*of[\s\#]*the[\s\#]*GNU[\s\#]*General[\s\#]*Public[\s\#]*License[\s\#]*as[\s\#]*published[\s\#]*by[\s\#]*the[\s\#]*Free[\s\#]*Software[\s\#]*Foundation[;,][\s\#]*version[\s\#]*2[\s\#]*of[\s\#]*the[\s\#]*License.*[\s\#]*This[\s\#]*program[\s\#]*is[\s\#]*distributed[\s\#]*in[\s\#]*the[\s\#]*hope[\s\#]*that[\s\#]*it[\s\#]*will[\#\s]*be[\#\s]*useful,[\#\s]*but[\#\s]*WITHOUT[\#\s]*ANY[\#\s]*WARRANTY;[\#\s]*without[\#\s]*even[\#\s]*the[\#\s]*implied[\#\s]*warranty[\#\s]*of[\#\s]*MERCHANTABILITY[\#\s]*or[\#\s]*FITNESS[\#\s]*FOR[\#\s]*A[\#\s]*PARTICULAR[\#\s]*PURPOSE.[\#\s]*See[\#\s]*the[\#\s]*GNU[\#\s]*General[\#\s]*Public[\#\s]*License[\#\s]*for[\#\s]*more[\#\s]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist)
perl -i -p0e 's|(\#\#*)[\w*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist)
Change-Id: I9f74ed19257bc4234465b8f912deff1b485173f9
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41179
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-08 22:50:46 +02:00
|
|
|
## SPDX-License-Identifier: GPL-2.0-only
|
2016-02-17 03:40:47 +01:00
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_COREINFO_SECONDARY_PAYLOAD) += img/coreinfo
|
|
|
|
img/coreinfo-file := payloads/coreinfo/build/coreinfo.elf
|
2018-05-16 03:05:07 +02:00
|
|
|
img/coreinfo-type := payload
|
2018-02-07 13:01:43 +01:00
|
|
|
img/coreinfo-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
|
2016-02-17 03:40:47 +01:00
|
|
|
|
2016-04-15 09:48:14 +02:00
|
|
|
cbfs-files-$(CONFIG_NVRAMCUI_SECONDARY_PAYLOAD) += img/nvramcui
|
2020-11-15 19:32:12 +01:00
|
|
|
img/nvramcui-file := payloads/nvramcui/build/nvramcui.elf
|
2018-05-16 03:05:07 +02:00
|
|
|
img/nvramcui-type := payload
|
2018-02-07 13:01:43 +01:00
|
|
|
img/nvramcui-compression := $(CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG)
|
2016-04-15 09:48:14 +02:00
|
|
|
|
2016-03-16 17:45:35 +01:00
|
|
|
PAYLOADS_LIST=\
|
|
|
|
payloads/coreinfo \
|
2016-04-15 09:48:14 +02:00
|
|
|
payloads/nvramcui \
|
2016-03-16 17:45:35 +01:00
|
|
|
payloads/libpayload \
|
|
|
|
payloads/external/depthcharge \
|
|
|
|
payloads/external/SeaBIOS \
|
|
|
|
payloads/external/U-Boot \
|
2016-03-13 20:00:43 +01:00
|
|
|
payloads/external/Memtest86Plus \
|
2016-05-27 23:44:47 +02:00
|
|
|
payloads/external/iPXE \
|
2016-06-03 00:42:29 +02:00
|
|
|
payloads/external/tint \
|
2022-07-13 11:11:44 +02:00
|
|
|
payloads/external/edk2 \
|
2017-08-14 02:01:22 +02:00
|
|
|
payloads/external/GRUB2 \
|
2018-06-19 20:22:32 +02:00
|
|
|
payloads/external/LinuxBoot \
|
2021-10-26 23:23:14 +02:00
|
|
|
payloads/external/skiboot \
|
2021-08-28 17:40:41 +02:00
|
|
|
payloads/external/coreDOOM \
|
2016-03-16 17:45:35 +01:00
|
|
|
|
2020-11-15 20:01:29 +01:00
|
|
|
force-payload:
|
|
|
|
|
2020-11-15 19:56:11 +01:00
|
|
|
payloads/coreinfo/build/coreinfo.elf coreinfo: export CCACHE := $(CCACHE)
|
2020-11-15 20:01:29 +01:00
|
|
|
payloads/coreinfo/build/coreinfo.elf coreinfo: force-payload
|
2016-02-17 03:40:47 +01:00
|
|
|
$(MAKE) -C payloads/coreinfo defaultbuild
|
2016-03-08 00:38:52 +01:00
|
|
|
|
2020-11-15 19:56:11 +01:00
|
|
|
payloads/nvramcui/build/nvramcui.elf nvramcui: export CCACHE := $(CCACHE)
|
2020-11-15 20:01:29 +01:00
|
|
|
payloads/nvramcui/build/nvramcui.elf nvramcui: force-payload
|
2016-04-15 09:48:14 +02:00
|
|
|
$(MAKE) -C payloads/nvramcui
|
|
|
|
|
2016-03-08 00:38:52 +01:00
|
|
|
clean-payloads:
|
2016-03-16 17:45:35 +01:00
|
|
|
$(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) clean; )
|
2016-03-08 00:38:52 +01:00
|
|
|
|
|
|
|
distclean-payloads:
|
2016-03-16 17:45:35 +01:00
|
|
|
$(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) distclean; )
|
2016-03-08 00:38:52 +01:00
|
|
|
|
2016-03-16 19:42:05 +01:00
|
|
|
print-repo-info-payloads:
|
|
|
|
-$(foreach payload, $(PAYLOADS_LIST), $(MAKE) -C $(payload) print-repo-info 2>/dev/null; )
|
|
|
|
|
2021-12-10 22:26:06 +01:00
|
|
|
ifeq ($(CONFIG_PAYLOAD_NONE),y)
|
2023-12-08 08:43:23 +01:00
|
|
|
show_notices:: warn_no_payload
|
2021-12-10 22:26:06 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
warn_no_payload:
|
|
|
|
printf "\n\t** WARNING **\n"
|
|
|
|
printf "coreboot has been built without a payload. Writing\n"
|
|
|
|
printf "a coreboot image without a payload to your board's\n"
|
|
|
|
printf "flash chip will result in a non-booting system. You\n"
|
|
|
|
printf "can use cbfstool to add a payload to the image.\n\n"
|
|
|
|
|
2020-11-15 20:01:29 +01:00
|
|
|
.PHONY: force-payload coreinfo nvramcui
|
2021-12-10 22:26:06 +01:00
|
|
|
.PHONY: clean-payloads distclean-payloads print-repo-info-payloads warn_no_payload
|