summaryrefslogtreecommitdiff
path: root/util/autoport/main.go
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-06-23 11:46:35 -0600
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-06-25 14:49:45 +0000
commita38203532d4db641909f1cfdcb107f1cef2e25ed (patch)
tree1c400330e1a5b6da9f8707b6655197c64604d71d /util/autoport/main.go
parentc40e3c9c1945c2b690e39f79531a4aef7e1d1b9c (diff)
util/autoport: Move SPDX header before defines in dsdt.asl
Macros were being printed before the SPDX header in dsdt.asl, so fix this. Previous output: #define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB #define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB /* SPDX-License-Identifier: GPL-2.0-only */ Change-Id: Idebdcf816911af9d262a114c86461e6fa5bfd1f8 Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83187 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/autoport/main.go')
-rw-r--r--util/autoport/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/autoport/main.go b/util/autoport/main.go
index 99099d51f6..b7130b240e 100644
--- a/util/autoport/main.go
+++ b/util/autoport/main.go
@@ -827,6 +827,7 @@ func main() {
dsdt := Create(ctx, "dsdt.asl")
defer dsdt.Close()
+ Add_gpl(dsdt)
for _, define := range DSDTDefines {
if define.Comment != "" {
@@ -835,7 +836,6 @@ func main() {
dsdt.WriteString("#define " + define.Key + " " + define.Value + "\n")
}
- Add_gpl(dsdt)
dsdt.WriteString(
`#include <acpi/acpi.h>