LOCAL_SDK_VERSION is not emitted for recovery variant
recovery variants are not built with NDK (useSdk() is false for recovery). So LOCAL_SDK_VERSION shouldn't be emitted for the recovery variants as well. Test: m -j liblzma.recovery does not show any link type check error Change-Id: Icb6c4fc766060e3f1555c405d5785ef5a015c629
This commit is contained in:
parent
4a789b1c3d
commit
97686288dd
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func (c *Module) AndroidMk() android.AndroidMkData {
|
|||
fmt.Fprintln(w, "LOCAL_SHARED_LIBRARIES := "+strings.Join(c.Properties.AndroidMkSharedLibs, " "))
|
||||
}
|
||||
if c.Target().Os == android.Android &&
|
||||
String(c.Properties.Sdk_version) != "" && !c.useVndk() {
|
||||
String(c.Properties.Sdk_version) != "" && !c.useVndk() && !c.inRecovery() {
|
||||
fmt.Fprintln(w, "LOCAL_SDK_VERSION := "+String(c.Properties.Sdk_version))
|
||||
fmt.Fprintln(w, "LOCAL_NDK_STL_VARIANT := none")
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue