mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-08-23 13:15:52 -04:00
Robustness improvements
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
6ba784ac33
commit
5d0ab40f0b
23 changed files with 276 additions and 316 deletions
|
@ -76,7 +76,7 @@ export -f buildAll;
|
|||
|
||||
patchWorkspace() {
|
||||
umask 0022;
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
cd "$DOS_BUILD_BASE/$1";
|
||||
touch DOS_PATCHED_FLAG;
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||
verifyAllPlatformTags;
|
||||
|
@ -98,7 +98,7 @@ patchWorkspace() {
|
|||
export -f patchWorkspace;
|
||||
|
||||
enableDexPreOpt() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
cd "$DOS_BUILD_BASE/$1";
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_DEBUG_INFO := false" >> BoardConfig.mk;
|
||||
|
@ -116,8 +116,8 @@ enableDexPreOpt() {
|
|||
export -f enableDexPreOpt;
|
||||
|
||||
enableLowRam() {
|
||||
if [ -d "$DOS_BUILD_BASE$1" ]; then
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
if [ -d "$DOS_BUILD_BASE/$1" ]; then
|
||||
cd "$DOS_BUILD_BASE/$1";
|
||||
if [ -f lineage.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage.mk; fi;
|
||||
if [ -f BoardConfig.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfig.mk; fi;
|
||||
if [ -f BoardConfigCommon.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfigCommon.mk; fi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue