From b6f25fad7bd8e17f0d3933abfc2376884b31d56a Mon Sep 17 00:00:00 2001 From: Sumit Pundir Date: Fri, 24 Jul 2020 13:44:20 +0530 Subject: [PATCH 1/2] q: add initial lineage-17.1 blobs support from muppets Signed-off-by: Sumit Pundir --- build-community.sh | 3 +++ src/build.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/build-community.sh b/build-community.sh index efa019e..e5feb4d 100755 --- a/build-community.sh +++ b/build-community.sh @@ -126,6 +126,9 @@ for branch in ${BRANCH_NAME//,/ }; do elif [[ $branch =~ pie$ ]]; then themuppets_branch=lineage-16.0 echo ">> [$(date)] Use branch $themuppets_branch on github.com/TheMuppets" + elif [[ $branch =~ q$ ]]; then + themuppets_branch=lineage-17.1 + echo ">> [$(date)] Use branch $themuppets_branch on github.com/TheMuppets" else themuppets_branch=cm-14.1 echo ">> [$(date)] Can't find a matching branch on github.com/TheMuppets, using $themuppets_branch" diff --git a/src/build.sh b/src/build.sh index 6d5ccfb..1bb0ee9 100755 --- a/src/build.sh +++ b/src/build.sh @@ -81,6 +81,9 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then elif [[ ${BRANCH_NAME} =~ pie$ ]]; then themuppets_branch=lineage-16.0 echo ">> [$(date)] Use branch $themuppets_branch on github.com/TheMuppets" + elif [[ ${BRANCH_NAME} =~ q$ ]]; then + themuppets_branch=lineage-17.1 + echo ">> [$(date)] Use branch $themuppets_branch on github.com/TheMuppets" else themuppets_branch=cm-14.1 echo ">> [$(date)] Can't find a matching branch on github.com/TheMuppets, using $themuppets_branch" -- GitLab From fc1738a9c784a491411ed4de0670431e3ad538e4 Mon Sep 17 00:00:00 2001 From: Sumit Pundir Date: Fri, 24 Jul 2020 15:44:21 +0530 Subject: [PATCH 2/2] q: add support for v1-q Signed-off-by: Sumit Pundir --- src/build.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/build.sh b/src/build.sh index 1bb0ee9..3ce4622 100755 --- a/src/build.sh +++ b/src/build.sh @@ -99,14 +99,17 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then sync_successful=false fi - android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.OPM1 := //p' build/core/version_defaults.mk) + android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.QP1A := //p' build/core/version_defaults.mk) if [ -z $android_version ]; then - android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.PPR1 := //p' build/core/version_defaults.mk) + android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.OPM1 := //p' build/core/version_defaults.mk) if [ -z $android_version ]; then - android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION := //p' build/core/version_defaults.mk) + android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION\.PPR1 := //p' build/core/version_defaults.mk) if [ -z $android_version ]; then - echo ">> [$(date)] Can't detect the android version" - exit 1 + android_version=$(sed -n -e 's/^\s*PLATFORM_VERSION := //p' build/core/version_defaults.mk) + if [ -z $android_version ]; then + echo ">> [$(date)] Can't detect the android version" + exit 1 + fi fi fi fi -- GitLab