Skip to contentSkip to conversation

OT: Best practices for indenting ASL files

DISCUSSION Paul Menzel 2 participants 4 messages Jun 7, 2013 – Jun 12, 2013 ACPI

lore
Share & tools
lore
#1 lore raw
Quoted 9 lines · Paul Menzel

Dear Linux ACPI folks,

we have a lot of ASL files in coreboot [1], a free firmware for hardware initialization.

As you can see in [2] for example, we struggle with whitespace issues.

Could you recommend best practices how to indent ASL files?

Well, why don't you adopt the convention used by 'iasl -d'? People are quite accustomed to that.

Thanks,
Rafael

Quoted 4 lines

[1] http://www.coreboot.org/
[2] http://review.coreboot.org/#/c/3403/2/src/ec/lenovo/h8/acpi/ec.asl

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#2 lore raw

Am Mittwoch, den 12.06.2013, 00:53 +0200 schrieb Rafael J. Wysocki:

Quoted 11 lines · Paul Menzel
Quoted 7 lines

we have a lot of ASL files in coreboot [1], a free firmware for hardware initialization.

As you can see in [2] for example, we struggle with whitespace issues.

Could you recommend best practices how to indent ASL files?

Well, why don't you adopt the convention used by 'iasl -d'? People are quite accustomed to that.

Yes, that is what I want to achieve. But how? Sorry for being unclear. Is there a utility for ASL files like indent -linux for C files?

Thanks,

Paul

Quoted 2 lines
Quoted 2 lines

[1] http://www.coreboot.org/
[2] http://review.coreboot.org/#/c/3403/2/src/ec/lenovo/h8/acpi/ec.asl

#3 lore raw
Quoted 8 lines · Paul Menzel

Am Mittwoch, den 12.06.2013, 00:53 +0200 schrieb Rafael J. Wysocki:

Quoted 7 lines · Paul Menzel
Quoted 6 lines

we have a lot of ASL files in coreboot [1], a free firmware for hardware initialization.

As you can see in [2] for example, we struggle with whitespace issues.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Could you recommend best practices how to indent ASL files?

Well, why don't you adopt the convention used by 'iasl -d'? People are quite accustomed to that.

Yes, that is what I want to achieve. But how? Sorry for being unclear. Is there a utility for ASL files like indent -linux for C files?

That I don't know, sorry. I guess you can always compile, disassemble and compare the result with the original code ...

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.