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-03-13 20:00:43 +01:00
|
|
|
|
2016-07-06 23:05:19 +02:00
|
|
|
config PXE
|
2016-03-13 20:00:43 +01:00
|
|
|
prompt "Add a PXE ROM"
|
2016-07-06 23:05:19 +02:00
|
|
|
def_bool n
|
2016-03-13 20:00:43 +01:00
|
|
|
depends on ARCH_X86
|
2016-07-06 23:05:19 +02:00
|
|
|
|
|
|
|
if PXE
|
|
|
|
menu "PXE Options"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "PXE ROM to use"
|
|
|
|
default PXE_ROM
|
2016-03-13 20:00:43 +01:00
|
|
|
|
|
|
|
config PXE_ROM
|
|
|
|
bool "Add an existing PXE ROM image"
|
|
|
|
help
|
|
|
|
Select this option if you have a PXE ROM image that you would
|
|
|
|
like to add to your ROM.
|
|
|
|
|
|
|
|
config BUILD_IPXE
|
|
|
|
bool "Build and add an iPXE ROM"
|
|
|
|
help
|
|
|
|
Select this option to fetch and build a ROM from the iPXE project.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config PXE_ROM_FILE
|
|
|
|
string "PXE ROM filename"
|
|
|
|
depends on PXE_ROM
|
|
|
|
default "pxe.rom"
|
|
|
|
help
|
|
|
|
The path and filename of the file to use as PXE ROM.
|
|
|
|
|
|
|
|
config PXE_ROM_ID
|
|
|
|
string "network card PCI IDs"
|
|
|
|
default "10ec,8168"
|
|
|
|
help
|
|
|
|
The comma-separated PCI vendor and device ID that would associate
|
|
|
|
your PXE ROM to your network card.
|
|
|
|
|
|
|
|
Example: 10ec,8168
|
|
|
|
|
|
|
|
In the above example 10ec is the PCI vendor ID (in hex, but without
|
|
|
|
the "0x" prefix) and 8168 specifies the PCI device ID of the
|
|
|
|
network card (also in hex, without "0x" prefix).
|
|
|
|
|
|
|
|
Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
|
2016-07-06 23:05:19 +02:00
|
|
|
|
2023-11-05 02:56:07 +01:00
|
|
|
if BUILD_IPXE
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "iPXE version"
|
|
|
|
default IPXE_STABLE
|
|
|
|
|
|
|
|
config IPXE_STABLE
|
|
|
|
bool "2022.1"
|
|
|
|
help
|
|
|
|
iPXE uses a rolling release with no stable version, for
|
|
|
|
reproducibility, use the last commit of a given month as the
|
|
|
|
'stable' version.
|
|
|
|
This is iPXE from the end of January, 2022.
|
|
|
|
|
|
|
|
config IPXE_MASTER
|
|
|
|
bool "master"
|
|
|
|
help
|
|
|
|
Newest iPXE version.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2018-06-26 13:12:49 +02:00
|
|
|
config PXE_SERIAL_CONSOLE
|
|
|
|
bool "Enable iPXE serial console"
|
|
|
|
def_bool y
|
|
|
|
help
|
|
|
|
Enable/disable iPXE serial console. Since SeaBIOS supports serial
|
|
|
|
console this option might be helpful to avoid duplicated output.
|
|
|
|
|
|
|
|
Unselect to let only SeaBIOS handle printing output.
|
|
|
|
|
2020-05-28 23:40:24 +02:00
|
|
|
config PXE_NO_PROMPT
|
2017-07-25 19:36:25 +02:00
|
|
|
bool "Do not show prompt to boot from PXE"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Don't wait for the user to press Ctrl-B.
|
|
|
|
The PXE still can be run as it shows up in SeaBIOS's payload list.
|
|
|
|
|
|
|
|
config PXE_ADD_SCRIPT
|
|
|
|
bool "Embed an iPXE script for automated provisioning"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable to embed a script that is run instead of an iPXE shell.
|
|
|
|
|
|
|
|
config PXE_SCRIPT
|
|
|
|
string "Embedded iPXE script path and filename"
|
|
|
|
depends on PXE_ADD_SCRIPT
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Path to a script that is embedded into the iPXE binary.
|
|
|
|
Example: startup.ipxe
|
|
|
|
|
|
|
|
Uses the ipxe script instead showing the prompt:
|
|
|
|
"Press Ctrl-B to start iPXE..."
|
|
|
|
|
2019-01-25 03:44:20 +01:00
|
|
|
config PXE_HAS_HTTPS
|
|
|
|
bool "Enable HTTPS protocol"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable HTTPS protocol, which allows you to encrypt all communication
|
|
|
|
with a web server and to verify the server's identity
|
|
|
|
|
2023-11-05 02:56:07 +01:00
|
|
|
endif # BUILD_IPXE
|
2016-07-06 23:05:19 +02:00
|
|
|
endmenu
|
2023-11-05 02:56:07 +01:00
|
|
|
|
|
|
|
endif # PXE
|