summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-03-18 23:55:36 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-20 09:36:12 +0000
commit3d5d6e8dc7f95d9bcf55ad0c67bd9b6d458c43dd (patch)
tree69c4f53d0e46e764c1d2d84d818cb8f2b0874503 /util
parent64402bbeb853a180ff84cdfafe45369dfb0d55fa (diff)
util/autoport: Emit SPDX license headers
Change-Id: I8896b6c92c3126cc611e47b39d596108b90c6bf2 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39662 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util')
-rw-r--r--util/autoport/main.go36
1 files changed, 5 insertions, 31 deletions
diff --git a/util/autoport/main.go b/util/autoport/main.go
index e3c3fdfa06..9e62b565da 100644
--- a/util/autoport/main.go
+++ b/util/autoport/main.go
@@ -212,25 +212,10 @@ func Create(ctx Context, name string) *os.File {
return mf
}
-func Add_gpl(fp *os.File) {
- fp.WriteString(`/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2008-2009 coresystems GmbH
- * Copyright (C) 2014 Vladimir Serbinenko
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-`)
+func Add_gpl(f *os.File) {
+ fmt.Fprintln(f, "/* SPDX-License-Identifier: GPL-2.0-only */")
+ fmt.Fprintln(f, "/* This file is part of the coreboot project. */")
+ fmt.Fprintln(f)
}
func RestorePCI16Simple(f *os.File, pcidev PCIDevData, addr uint16) {
@@ -900,19 +885,8 @@ DefinitionBlock(
gma := Create(ctx, "gma-mainboard.ads")
defer gma.Close()
- gma.WriteString(`--
+ gma.WriteString(`-- SPDX-License-Identifier: GPL-2.0-or-later
-- This file is part of the coreboot project.
---
--- This program is free software; you can redistribute it and/or modify
--- it under the terms of the GNU General Public License as published by
--- the Free Software Foundation; either version 2 of the License, or
--- (at your option) any later version.
---
--- This program is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
--- GNU General Public License for more details.
---
with HW.GFX.GMA;
with HW.GFX.GMA.Display_Probing;