Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30971
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
util/autoport: Make dsdt.asl prettier
Small cosmetic changes which fix OCD-inducing aesthetic inaccuracies.
Change-Id: I8fef4bbe12b283cee2ab8d078de950171757bbfe Signed-off-by: Angel Pons th3fanbus@gmail.com --- M util/autoport/main.go 1 file changed, 7 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/30971/1
diff --git a/util/autoport/main.go b/util/autoport/main.go index ee26966..5d660d1 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -842,13 +842,14 @@
for _, define := range DSDTDefines { if define.Comment != "" { - fmt.Fprintf(dsdt, "\t/* %s. */\n", define.Comment) + fmt.Fprintf(dsdt, "\t/* %s. */\n", define.Comment) } dsdt.WriteString("#define " + define.Key + " " + define.Value + "\n") }
dsdt.WriteString( - `#include <arch/acpi.h> + ` +#include <arch/acpi.h> DefinitionBlock( "dsdt.aml", "DSDT", @@ -858,7 +859,7 @@ 0x20141018 // OEM revision ) { - // Some generic macros + /* Some generic macros */ #include "acpi/platform.asl" `)
@@ -870,9 +871,8 @@ }
dsdt.WriteString(` - Scope (_SB) { - Device (PCI0) - { + Device (_SB.PCI0) + { `) for _, x := range DSDTPCI0Includes { if x.Comment != "" { @@ -881,8 +881,7 @@ fmt.Fprintf(dsdt, "\t\t#include <%s>\n", x.File) } dsdt.WriteString( - ` } - } + ` } } `)
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/30971
to look at the new patch set (#2).
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
util/autoport: Make dsdt.asl prettier
Small cosmetic changes which fix OCD-inducing aesthetic inaccuracies.
Change-Id: I8fef4bbe12b283cee2ab8d078de950171757bbfe Signed-off-by: Angel Pons th3fanbus@gmail.com --- M util/autoport/main.go 1 file changed, 9 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/30971/2
Tristan Corrick has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30971 )
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
Patch Set 2: Code-Review+1
(3 comments)
https://review.coreboot.org/#/c/30971/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/#/c/30971/2//COMMIT_MSG@9 PS2, Line 9: OCD-inducing Maybe drop this part.
https://review.coreboot.org/#/c/30971/2/util/autoport/main.go File util/autoport/main.go:
https://review.coreboot.org/#/c/30971/2/util/autoport/main.go@848 PS2, Line 848: #include <arch/acpi.h> I think there should be a blank line between this and the DefinitionBlock.
https://review.coreboot.org/#/c/30971/2/util/autoport/main.go@858 PS2, Line 858: /* Some generic macros */ Is this comment really needed?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30971 )
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
Patch Set 2:
(3 comments)
https://review.coreboot.org/#/c/30971/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/#/c/30971/2//COMMIT_MSG@9 PS2, Line 9: OCD-inducing
Maybe drop this part.
I didn't know of a better way to describe them...
https://review.coreboot.org/#/c/30971/2/util/autoport/main.go File util/autoport/main.go:
https://review.coreboot.org/#/c/30971/2/util/autoport/main.go@848 PS2, Line 848: #include <arch/acpi.h>
I think there should be a blank line between this and the DefinitionBlock.
Okay, sounds good.
https://review.coreboot.org/#/c/30971/2/util/autoport/main.go@858 PS2, Line 858: /* Some generic macros */
Is this comment really needed?
Not really, it is rather obnoxious.
Tristan Corrick has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30971 )
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/#/c/30971/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/#/c/30971/2//COMMIT_MSG@9 PS2, Line 9: OCD-inducing
I didn't know of a better way to describe them...
I think the description is still apt without the OCD part.
Hello Tristan Corrick, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/30971
to look at the new patch set (#3).
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
util/autoport: Make dsdt.asl prettier
Small cosmetic changes which fix aesthetic inaccuracies.
Change-Id: I8fef4bbe12b283cee2ab8d078de950171757bbfe Signed-off-by: Angel Pons th3fanbus@gmail.com --- M util/autoport/main.go 1 file changed, 9 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/30971/3
Tristan Corrick has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30971 )
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
Patch Set 3: Code-Review+2
Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/30971 )
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
util/autoport: Make dsdt.asl prettier
Small cosmetic changes which fix aesthetic inaccuracies.
Change-Id: I8fef4bbe12b283cee2ab8d078de950171757bbfe Signed-off-by: Angel Pons th3fanbus@gmail.com Reviewed-on: https://review.coreboot.org/c/30971 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Tristan Corrick tristan@corrick.kiwi --- M util/autoport/main.go 1 file changed, 9 insertions(+), 10 deletions(-)
Approvals: build bot (Jenkins): Verified Tristan Corrick: Looks good to me, approved
diff --git a/util/autoport/main.go b/util/autoport/main.go index 05a829b..dc02a8d 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -838,13 +838,14 @@
for _, define := range DSDTDefines { if define.Comment != "" { - fmt.Fprintf(dsdt, "\t/* %s. */\n", define.Comment) + fmt.Fprintf(dsdt, "\t/* %s. */\n", define.Comment) } dsdt.WriteString("#define " + define.Key + " " + define.Value + "\n") }
dsdt.WriteString( - `#include <arch/acpi.h> + ` +#include <arch/acpi.h> DefinitionBlock( "dsdt.aml", "DSDT", @@ -854,31 +855,29 @@ 0x20141018 // OEM revision ) { - // Some generic macros + /* Some generic macros */ #include "acpi/platform.asl" `)
for _, x := range DSDTIncludes { if x.Comment != "" { - fmt.Fprintf(dsdt, "\t/* %s. */\n", x.Comment) + fmt.Fprintf(dsdt, "\t/* %s. */\n", x.Comment) } fmt.Fprintf(dsdt, "\t#include <%s>\n", x.File) }
dsdt.WriteString(` - Scope (_SB) { - Device (PCI0) - { + Device (_SB.PCI0) + { `) for _, x := range DSDTPCI0Includes { if x.Comment != "" { - fmt.Fprintf(dsdt, "\t/* %s. */\n", x.Comment) + fmt.Fprintf(dsdt, "\t/* %s. */\n", x.Comment) } fmt.Fprintf(dsdt, "\t\t#include <%s>\n", x.File) } dsdt.WriteString( - ` } - } + ` } } `)
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30971 )
Change subject: util/autoport: Make dsdt.asl prettier ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/30971/4/util/autoport/main.go File util/autoport/main.go:
https://review.coreboot.org/c/coreboot/+/30971/4/util/autoport/main.go@870 PS4, Line 870: Device (_SB.PCI0) : { This change is not cosmetic.