Nicholas Chin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83185?usp=email )
Change subject: util/autoport: Add CC-PDDC SPDX header to empty files ......................................................................
util/autoport: Add CC-PDDC SPDX header to empty files
As per commit cf4722d317ea (src/mb: Update unlicensable files with the CC-PDDC SPDX ID) effectively empty files should use the the Creative Commons Public Domain Dedication and Certification (CC-PDDC) license header.
The only empty files that autoport currently generates are ec.asl and superio.asl on non-laptop systems, where NoEC() is used.
Change-Id: I5fdf0c80443a79c082b3d0418d16cd858782b2c9 Signed-off-by: Nicholas Chin nic.c3.14@gmail.com --- M util/autoport/ec_none.go M util/autoport/main.go 2 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/83185/1
diff --git a/util/autoport/ec_none.go b/util/autoport/ec_none.go index 60ffd50..1e63e29 100644 --- a/util/autoport/ec_none.go +++ b/util/autoport/ec_none.go @@ -18,7 +18,9 @@
si := Create(ctx, "acpi/superio.asl") defer si.Close() + Add_CC_PDDC(si, ASL)
ec := Create(ctx, "acpi/ec.asl") defer ec.Close() + Add_CC_PDDC(ec, ASL) } diff --git a/util/autoport/main.go b/util/autoport/main.go index ff530f5..114c064 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -237,6 +237,14 @@ fmt.Fprintln(f) }
+func Add_CC_PDDC(f *os.File, filetype Filetype) { + fmt.Fprintf(f, CommentFormatStrings[filetype], + "SPDX-License-Identifier: CC-PDDC") + fmt.Fprintln(f) + fmt.Fprintf(f, CommentFormatStrings[filetype], + "Please update the license if adding licensable material.") +} + func RestorePCI16Simple(f *os.File, pcidev PCIDevData, addr uint16) { fmt.Fprintf(f, " pci_write_config16(PCI_DEV(%d, 0x%02x, %d), 0x%02x, 0x%02x%02x);\n", pcidev.Bus, pcidev.Dev, pcidev.Func, addr,