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>
This commit is contained in:
Angel Pons 2020-03-18 23:55:36 +01:00 committed by Patrick Georgi
parent 64402bbeb8
commit 3d5d6e8dc7
1 changed files with 5 additions and 31 deletions

View File

@ -212,25 +212,10 @@ func Create(ctx Context, name string) *os.File {
return mf return mf
} }
func Add_gpl(fp *os.File) { func Add_gpl(f *os.File) {
fp.WriteString(`/* fmt.Fprintln(f, "/* SPDX-License-Identifier: GPL-2.0-only */")
* This file is part of the coreboot project. fmt.Fprintln(f, "/* This file is part of the coreboot project. */")
* fmt.Fprintln(f)
* 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 RestorePCI16Simple(f *os.File, pcidev PCIDevData, addr uint16) { func RestorePCI16Simple(f *os.File, pcidev PCIDevData, addr uint16) {
@ -900,19 +885,8 @@ DefinitionBlock(
gma := Create(ctx, "gma-mainboard.ads") gma := Create(ctx, "gma-mainboard.ads")
defer gma.Close() defer gma.Close()
gma.WriteString(`-- gma.WriteString(`-- SPDX-License-Identifier: GPL-2.0-or-later
-- This file is part of the coreboot project. -- 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;
with HW.GFX.GMA.Display_Probing; with HW.GFX.GMA.Display_Probing;