From 16f213a499a033627a4897f808110759cf3d52fa Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 16 Sep 2020 16:23:46 +0800 Subject: autoport: Add a license header to non-empty files Change-Id: I8078d8babf24feabb22856ee820ab45b7d466f62 Signed-off-by: Iru Cai Reviewed-on: https://review.coreboot.org/c/coreboot/+/45464 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- util/autoport/ec_fixme.go | 3 +++ util/autoport/ec_lenovo.go | 3 +++ util/autoport/ec_none.go | 1 + util/autoport/main.go | 3 ++- 4 files changed, 9 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/autoport/ec_fixme.go b/util/autoport/ec_fixme.go index f5d039cac4..54f78ab432 100644 --- a/util/autoport/ec_fixme.go +++ b/util/autoport/ec_fixme.go @@ -19,6 +19,7 @@ func FIXMEEC(ctx Context) { SouthBridge.EnableGPE(SouthBridge.DecodeGPE(sbGPE)) } + Add_gpl(ap) ap.WriteString( `Method(_WAK, 1) { @@ -64,6 +65,7 @@ Method(_PTS,1) defer si.Close() if hasKeyboard { + Add_gpl(si) si.WriteString("#include \n") MainboardInit += fmt.Sprintf("\tpc_keyboard_init(NO_AUX_DEVICE);\n") MainboardIncludes = append(MainboardIncludes, "pc80/keyboard.h") @@ -72,6 +74,7 @@ Method(_PTS,1) ec := Create(ctx, "acpi/ec.asl") defer ec.Close() + Add_gpl(ec) ec.WriteString(`Device(EC) { Name (_HID, EISAID("PNP0C09")) diff --git a/util/autoport/ec_lenovo.go b/util/autoport/ec_lenovo.go index 6851d6d1ed..763ac2600c 100644 --- a/util/autoport/ec_lenovo.go +++ b/util/autoport/ec_lenovo.go @@ -39,6 +39,7 @@ func LenovoEC(ctx Context) { Value: "1", }, GPEDefine) + Add_gpl(ap) ap.WriteString( `Method(_WAK, 1) { @@ -57,6 +58,7 @@ Method(_PTS,1) si := Create(ctx, "acpi/superio.asl") defer si.Close() + Add_gpl(si) si.WriteString("#include \n") /* FIXME:XX Move this to ec/lenovo. */ @@ -163,6 +165,7 @@ void mainboard_smi_sleep(u8 slp_typ) ec := Create(ctx, "acpi/ec.asl") defer ec.Close() + Add_gpl(ec) ec.WriteString("#include \n") KconfigBool["EC_LENOVO_PMH7"] = true diff --git a/util/autoport/ec_none.go b/util/autoport/ec_none.go index eb2b87c2ed..bcb61bf03f 100644 --- a/util/autoport/ec_none.go +++ b/util/autoport/ec_none.go @@ -4,6 +4,7 @@ func NoEC(ctx Context) { ap := Create(ctx, "acpi/platform.asl") defer ap.Close() + Add_gpl(ap) ap.WriteString( `Method(_WAK, 1) { diff --git a/util/autoport/main.go b/util/autoport/main.go index 6b02a64e6c..35e21ab6c1 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -747,6 +747,7 @@ func main() { if MainboardInit != "" || MainboardEnable != "" || MainboardIncludes != nil { mainboard := Create(ctx, "mainboard.c") defer mainboard.Close() + Add_gpl(mainboard) mainboard.WriteString("#include \n") for _, include := range MainboardIncludes { mainboard.WriteString("#include <" + include + ">\n") @@ -825,9 +826,9 @@ func main() { dsdt.WriteString("#define " + define.Key + " " + define.Value + "\n") } + Add_gpl(dsdt) dsdt.WriteString( ` - #include DefinitionBlock( -- cgit v1.2.3