Replace is-platform-sdk-version-at-least calls with checking IS_AT_LEAST_xxx.

Bug: 201477826
Test: treehugger

This change has been generated by the following script:

```
#! /bin/bash
declare -r files="$(grep -rlP '^[^#]*call +is-platform-sdk-version-at-least' --include '*.mk')"
[[ -z "$files" ]] || sed -i -r -f <(cat <<"EOF"
s/^([^#]*ifn?eq) +\(\$\(call is-platform-sdk-version-at-least, *(16|17|18|19|20|21|22|23|24|25)\), *true\)/\1 \(T,T\)  \# TODO: Obsolete, please remove/
s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *26\), *true\)/\1if\2def IS_AT_LEAST_OPR1/
s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *27\), *true\)/\1if\2def IS_AT_LEAST_OPM1/
s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *28\), *true\)/\1if\2def IS_AT_LEAST_PPR1/
s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *29\), *true\)/\1if\2def IS_AT_LEAST_QP1A/
s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *30\), *true\)/\1if\2def IS_AT_LEAST_RP1A/
s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *31\), *true\)/\1if\2def IS_AT_LEAST_SP1A/
EOF
) $files
```

Change-Id: Iae8e0931842f3470420829c0313ab0dbcc1bc489
This commit is contained in:
Sasha Smundak
2021-10-04 16:03:28 -07:00
parent 3b52606918
commit 5a9e2124fe
2 changed files with 2 additions and 2 deletions

View File

@@ -47,6 +47,6 @@ ifeq ($(TARGET_USES_QCOM_BSP),true)
# Enable QCOM Display features
common_flags += -DQCOM_BSP
endif
ifneq ($(call is-platform-sdk-version-at-least,18),true)
ifneq (T,T) # TODO: Obsolete, please remove
common_flags += -DANDROID_JELLYBEAN_MR1=1
endif

View File

@@ -42,7 +42,7 @@ ifeq ($(TARGET_USES_QCOM_BSP),true)
# Enable QCOM Display features
common_flags += -DQCOM_BSP
endif
ifneq ($(call is-platform-sdk-version-at-least,18),true)
ifneq (T,T) # TODO: Obsolete, please remove
common_flags += -DANDROID_JELLYBEAN_MR1=1
endif
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)