This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 96a5258
Showing
6 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Own Values | ||
export CCACHE_DIR=~/.ccache13 | ||
export OUT_DIR_COMMON_BASE=~/out-android | ||
|
||
# Use pre-defined build script | ||
source z_patches/build_falcon.sh | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Own Values | ||
export CCACHE_DIR=~/.ccache13 | ||
export OUT_DIR_COMMON_BASE=~/out-android | ||
|
||
# Use pre-defined build script | ||
source z_patches/build_gts210ltexx.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Own Values | ||
export CCACHE_DIR=~/.ccache13 | ||
export OUT_DIR_COMMON_BASE=~/out-android | ||
|
||
# Use pre-defined build script | ||
source z_patches/build_osprey.sh | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
|
||
|
||
copy_files() { | ||
cat <<EOF | ||
build_falcon.sh | ||
build_gts210ltexx.sh | ||
build_osprey.sh | ||
make_clean.sh | ||
switch_microG.sh | ||
EOF | ||
} | ||
|
||
|
||
copy_files | while read FILE; do | ||
cp "$FILE" ../../ | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Out directory on SSD | ||
export OUT_DIR_COMMON_BASE=~/out-android | ||
make clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
switch_branches() { | ||
TOPDIR=$PWD | ||
cd $2 | ||
echo "-" | ||
echo "$PWD" | ||
git checkout $1 | ||
cd $TOPDIR | ||
} | ||
|
||
switch_zpatch() { | ||
TOPDIR=$PWD | ||
cd z_patches | ||
echo "-" | ||
echo "$PWD" | ||
case "$2" in | ||
R) ./patches_reverse.sh | ||
git checkout $1 | ||
;; | ||
S) ./patches_apply.sh | ||
;; | ||
esac | ||
cd $TOPDIR | ||
} | ||
|
||
case "$1" in | ||
microG) BRANCH="cm-13.0-microG" | ||
;; | ||
default) BRANCH="cm-13.0" | ||
;; | ||
*) echo "usage: switch_microg default|microG" | ||
exit | ||
;; | ||
esac | ||
|
||
switch_zpatch $BRANCH R | ||
|
||
switch_branches $BRANCH external/sepolicy | ||
switch_branches $BRANCH external/sqlite | ||
switch_branches $BRANCH frameworks/base | ||
switch_branches $BRANCH frameworks/native | ||
switch_branches $BRANCH packages/apps/Settings | ||
switch_branches $BRANCH packages/apps/SetupWizard | ||
switch_branches $BRANCH vendor/cm | ||
switch_branches $BRANCH .repo/local_manifests | ||
|
||
switch_zpatch $BRANCH S | ||
|
||
|
||
|