mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-07-22 06:18:58 -04:00
Tweaks and cleanup
This commit is contained in:
parent
4053ad6082
commit
e4435f9eac
9 changed files with 41 additions and 49 deletions
|
@ -91,7 +91,7 @@ export -f patchWorkspace;
|
|||
|
||||
enableDexPreOpt() {
|
||||
cd $base$1;
|
||||
if [ $1 != "device/amazon/thor" ] && [ $1 != "device/samsung/i9100" ] && [ $1 != "device/lge/h850" ]; then #Some devices won't compile, or have too small of a /system partition
|
||||
if [ $1 != "device/amazon/thor" ] && [ $1 != "device/samsung/i9100" ] && [ $1 != "device/lge/h850" ] && [ $1 != "device/lge/mako" ]; then #Some devices won't compile, or have too small of a /system partition
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_PIC := true" >> BoardConfig.mk;
|
||||
|
@ -104,13 +104,25 @@ enableDexPreOpt() {
|
|||
export -f enableDexPreOpt;
|
||||
|
||||
enableDexPreOptFull() {
|
||||
cd $base$1;
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
sed -i "s/WITH_DEXPREOPT_BOOT_IMG_ONLY := true/WITH_DEXPREOPT_BOOT_IMG_ONLY := false/" BoardConfig.mk;
|
||||
echo "Enabled full dexpreopt";
|
||||
fi;
|
||||
cd $base;
|
||||
}
|
||||
export -f enableDexPreOptFull;
|
||||
|
||||
disableDexPreOpt() {
|
||||
cd $base$1;
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
sed -i "s/WITH_DEXPREOPT := true/WITH_DEXPREOPT := false/" BoardConfig.mk;
|
||||
echo "Disabled dexpreopt";
|
||||
fi;
|
||||
cd $base;
|
||||
}
|
||||
export -f disableDexPreOpt;
|
||||
|
||||
compressRamdisks() {
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "LZMA_RAMDISK_TARGETS := boot,recovery" >> BoardConfig.mk;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue