Page MenuHomeFreeBSD

arm64: Don't rely on host readelf for u-boot booti image generation
ClosedPublic

Authored by jrtc27 on Oct 29 2021, 3:26 PM.
Tags
None
Referenced Files
F163782486: D32734.id.diff
Sun, Jul 26, 12:05 AM
F163690943: D32734.id97671.diff
Sat, Jul 25, 12:38 PM
Unknown Object (File)
Sat, Jul 25, 4:16 AM
Unknown Object (File)
Sat, Jul 25, 1:51 AM
Unknown Object (File)
Jun 26 2026, 6:02 AM
Unknown Object (File)
Jun 26 2026, 3:31 AM
Unknown Object (File)
Jun 19 2026, 5:07 AM
Unknown Object (File)
Jun 15 2026, 5:48 PM
Subscribers

Details

Summary

readelf is not a bootstrap tool and so cannot be relied upon to exist.
On macOS there is no system readelf, and even on Linux or FreeBSD where
it does exist, BUILD_WITH_STRICT_TMPPATH builds won't be able to use it.
Instead of making it a bootstrap tool, just use nm as that suffices and
already is a bootstrap tool.

Fixes: 28482babd08a ("arm64: Use new arm_kernel_boothdr script for generating booti images.")
MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42436
Build 39324: arc lint + arc unit