Filter ABI dumps by LLNDK headers and version scripts

This commit changes the parameters to create LLNDK ABI dumps for 202404
and later versions. Soong invokes header-abi-linker with LLNDK headers
and version script rather than the implementation library's parameters.
The output dump contains more precise ABI information.

When soong compares the ABI with the prebuilt dumps in old versions,
it creates the source ABI dumps with the old parameters.

Test: make findlsdumps
Bug: 314010764
Change-Id: I228736188d07029ee1588b3502fd7c0061c104b9
This commit is contained in:
Hsin-Yi Chen
2024-03-29 19:12:35 +08:00
parent d22fcc425e
commit 64b2d0389c
3 changed files with 102 additions and 15 deletions

View File

@@ -1409,6 +1409,11 @@ func (c *config) PrevVendorApiLevel() string {
return strconv.Itoa(vendorApiLevel - 100)
}
func IsTrunkStableVendorApiLevel(level string) bool {
levelInt, err := strconv.Atoi(level)
return err == nil && levelInt >= 202404
}
func (c *config) VendorApiLevelFrozen() bool {
return c.productVariables.GetBuildFlagBool("RELEASE_BOARD_API_LEVEL_FROZEN")
}