Page MenuHomeFreeBSD

acpi: build dev/acpi_support/acpi_wmi_if.m on ARM64
ClosedPublic

Authored by ngie on Thu, Feb 26, 6:11 PM.
Tags
None
Referenced Files
F146682537: D55535.id172778.diff
Wed, Mar 4, 4:49 PM
Unknown Object (File)
Tue, Mar 3, 5:29 AM
Unknown Object (File)
Mon, Mar 2, 2:01 PM
Unknown Object (File)
Sun, Mar 1, 1:13 PM
Unknown Object (File)
Sun, Mar 1, 9:40 AM
Unknown Object (File)
Sun, Mar 1, 9:38 AM
Unknown Object (File)
Sun, Mar 1, 9:37 AM
Unknown Object (File)
Sun, Mar 1, 6:23 AM

Details

Summary

Per Wikipedia, ACPI WMI support is available on all x86* platforms
and ARM platforms. Add the source to files.arm64 so code that relies
on its headers (thunderbolt(4) for instance), can be built on ARM64.

Test Plan

This passes make universe.

This is a part of my larger attempt/effort to see how much of my Apple Silicon-based machine boots with FreeBSD CURRENT, but this is also a requirement for building thunderbolt(4) on ARM64.

This particular change has not been runtime tested yet.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71077
Build 67960: arc lint + arc unit

Event Timeline

ngie requested review of this revision.Thu, Feb 26, 6:11 PM
ngie added subscribers: kevans, adrian.
sys/conf/files.arm64
209

Not sure why it's standard on x86 (that's where I copied the line from), but this should be "optional acpi".

sys/conf/files.arm64
209

It should be under optional acpi as the kernel cam be built without ACPI support, e.g. using FDT.

sys/conf/files.arm64
209

Ah, yes. I forgot to update the diff -- thank you for the reminder :).

Build the .m when acpi/acpi_wmi are explicitly requested. Don't make it
part of the standard kernel.

As @andrew rightly noted, ARM64 can be built without ACPI (FDT-based
platforms). I discovered shortly after posting the diff as the LINT-FDT
kernel target build failed make tinderbox :D.

This revision is now accepted and ready to land.Fri, Feb 27, 8:43 PM
ngie marked an inline comment as done.Fri, Feb 27, 8:53 PM
ngie added a subscriber: jkim.

I want to give @jkim some time to look at this since the acpi_wmi part of the diff might be unnecessary.