src/: 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: Ia01908544f4b92a2e06ea621eca548e582728280
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41178
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-01-02 03:08:48 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SOC_INTEL_QUARK),y)
|
|
|
|
|
2016-02-02 16:17:06 +01:00
|
|
|
subdirs-y += romstage
|
2018-11-13 19:28:07 +01:00
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
2016-01-02 03:08:48 +01:00
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
|
|
|
|
2016-06-06 03:48:31 +02:00
|
|
|
bootblock-y += bootblock/esram_init.S
|
|
|
|
bootblock-y += bootblock/bootblock.c
|
|
|
|
bootblock-y += i2c.c
|
|
|
|
bootblock-y += reg_access.c
|
|
|
|
bootblock-y += tsc_freq.c
|
|
|
|
bootblock-y += uart_common.c
|
|
|
|
|
2017-01-04 17:26:53 +01:00
|
|
|
verstage-y += i2c.c
|
|
|
|
verstage-y += reg_access.c
|
|
|
|
verstage-y += tsc_freq.c
|
|
|
|
verstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
|
|
|
|
2016-05-30 23:06:25 +02:00
|
|
|
romstage-y += i2c.c
|
2016-01-02 03:08:48 +01:00
|
|
|
romstage-y += memmap.c
|
2016-05-02 23:31:02 +02:00
|
|
|
romstage-y += reg_access.c
|
2017-04-02 05:33:58 +02:00
|
|
|
romstage-$(CONFIG_STORAGE_TEST) += storage_test.c
|
2016-02-07 23:37:13 +01:00
|
|
|
romstage-y += tsc_freq.c
|
2016-02-17 17:47:58 +01:00
|
|
|
romstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
2019-10-24 00:19:45 +02:00
|
|
|
romstage-y += reset.c
|
2016-07-25 19:14:07 +02:00
|
|
|
|
2019-10-24 00:19:45 +02:00
|
|
|
postcar-y += fsp_params.c
|
2016-07-25 19:14:07 +02:00
|
|
|
postcar-y += i2c.c
|
|
|
|
postcar-y += reg_access.c
|
|
|
|
postcar-y += tsc_freq.c
|
|
|
|
postcar-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
2016-01-02 03:08:48 +01:00
|
|
|
|
2016-02-21 02:15:33 +01:00
|
|
|
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
|
2016-02-08 16:12:30 +01:00
|
|
|
ramstage-y += chip.c
|
2016-05-22 18:01:41 +02:00
|
|
|
ramstage-y += ehci.c
|
2019-10-24 00:19:45 +02:00
|
|
|
ramstage-y += fsp_params.c
|
2016-05-16 00:12:56 +02:00
|
|
|
ramstage-y += gpio_i2c.c
|
2016-05-30 23:06:25 +02:00
|
|
|
ramstage-y += i2c.c
|
2016-05-23 00:34:11 +02:00
|
|
|
ramstage-y += lpc.c
|
2016-02-15 00:10:35 +01:00
|
|
|
ramstage-y += northcluster.c
|
2016-05-02 23:31:02 +02:00
|
|
|
ramstage-y += reg_access.c
|
2019-10-24 00:19:45 +02:00
|
|
|
ramstage-y += reset.c
|
2017-04-02 05:33:58 +02:00
|
|
|
ramstage-y += sd.c
|
2017-05-24 22:23:26 +02:00
|
|
|
ramstage-y += spi.c
|
|
|
|
ramstage-y += spi_debug.c
|
2017-04-02 05:33:58 +02:00
|
|
|
ramstage-$(CONFIG_STORAGE_TEST) += storage_test.c
|
2016-02-07 23:37:13 +01:00
|
|
|
ramstage-y += tsc_freq.c
|
2016-02-17 17:47:58 +01:00
|
|
|
ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
2016-02-07 23:37:13 +01:00
|
|
|
ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart.c
|
2016-01-02 03:08:48 +01:00
|
|
|
|
2016-02-08 16:12:30 +01:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/quark
|
2016-01-02 03:08:48 +01:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/quark/include
|
2016-07-25 16:41:54 +02:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/quark/include/soc/fsp
|
2016-01-02 03:08:48 +01:00
|
|
|
|
|
|
|
# Chipset microcode path
|
|
|
|
CPPFLAGS_common += -I3rdparty/blobs/soc/intel/quark
|
|
|
|
|
2016-07-25 19:14:07 +02:00
|
|
|
# Since FSP-M runs in CAR we need to relocate it to a specific address
|
2019-11-06 11:01:00 +01:00
|
|
|
$(call strip_quotes,$(CONFIG_FSP_M_CBFS))-options := -b $(CONFIG_FSP_ESRAM_LOC)
|
2016-07-25 19:14:07 +02:00
|
|
|
|
2016-02-07 19:42:14 +01:00
|
|
|
# Add the FSP binary to the CBFS image
|
|
|
|
cbfs-files-$(CONFIG_ADD_FSP_RAW_BIN) += fsp.bin
|
|
|
|
fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE))
|
|
|
|
fsp.bin-position := $(CONFIG_FSP_LOC)
|
|
|
|
fsp.bin-type := raw
|
|
|
|
|
2016-02-02 16:17:06 +01:00
|
|
|
# Add the chipset microcode file to the CBFS image
|
|
|
|
cbfs-files-$(CONFIG_ADD_RMU_FILE) += rmu.bin
|
|
|
|
rmu.bin-file := $(call strip_quotes,$(CONFIG_RMU_FILE))
|
|
|
|
rmu.bin-position := $(CONFIG_RMU_LOC)
|
|
|
|
rmu.bin-type := raw
|
|
|
|
|
2016-01-02 03:08:48 +01:00
|
|
|
endif # CONFIG_SOC_INTEL_QUARK
|