From a38203532d4db641909f1cfdcb107f1cef2e25ed Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sun, 23 Jun 2024 11:46:35 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83187 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/autoport/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3